View source on GitHub |
Given the alpha and beta occupation strings return, a fermion operator
fqe.openfermion_utils.determinant_to_ops(
a_str: int,
b_str: int,
inorder: bool = False
) -> "FermionOperator"
which would produce that state when acting on the vacuum.
Args | |
---|---|
a_str (bitstring) - spatial orbital occupation by the alpha electrons
b_str (bitstring) - spatial orbital occupation by the beta electrons inorder (bool) - flag to control creation and annihilation order |
Returns | |
---|---|
(FermionOperator) |