Skip to content

Enforce at least float type in BoseHubbard operator

Vicentini Filippo requested to merge github/fork/macekmar/enforce-float into master

Created by: macekmar

When supplying integer parameters to Bose-Hubbard operator (e.g. J = 1 vs J = 1.0) the inferred dtype is integer. However, the Bose-Hubbard operator (matrix elements) is inherently irrational, since jumping operators are the square root of particle number.

Merge request reports