Function Destroy(const int, const uint32_t, const ED_mixed_basis&, const ED_mixed_basis&)¶
Defined in File ED_basis.cpp
Function Documentation¶
-
tuple<uint32_t, int, int, bool> Destroy(const int a, const uint32_t label, const ED_mixed_basis &Bx, const ED_mixed_basis &By)¶
Applies the creation (op = 1) or destruction (op = -1) operator on a state of Basis Bx.
Will necessarily give a state of Basis By, or zero. returns false if the state is null
- Parameters:
a – orbital at which the creation/annihilation takes place
label – basis state label on which this is applied in basis Bx
labelp – label of the resulting basis state in basis By
Bx – initial basis
By – target basis returns {labelp, phase, length, flag} phase : phase in factor exp(i phase pi /g) produced by applying the operator. length : length of the cycle of the created state (useful to calculate its normalization) flag : true if resulting state is nonzero