Closed SamFerracin closed 8 months ago
Description of the Change:
probability
cutoffs
fock_state
Number
dm
Ket
DM
astensor
PolyExpAnsatz
Bargmann
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 86.61%. Comparing base (e06c0c1) to head (d56167f).
e06c0c1
d56167f
Description of the Change:
probability
method for states, so that we can now normalize states with batched representations (i.e., in a superposition).cutoffs
argument tofock_state
in fock.py, so that theNumber
state can now be initialized with a cutoff.dm
method toKet
, to compute theDM
that corresponds to the given ketastensor
in the init ofPolyExpAnsatz
, so thatBargmann
's A, b, and c can be given as lists and not necessarily as np.arrays.