ffsim.NumNumAnsatzOpSpinBalanced¶
- class ffsim.NumNumAnsatzOpSpinBalanced(norb, interaction_pairs, thetas)[source]¶
Bases:
SupportsApplyUnitary,SupportsApproximateEqualityA number-number interaction ansatz operator.
The number-number interaction ansatz consists of a sequence of number-number interactions.
- interaction_pairs¶
The orbital pairs to apply the number-number interactions to.
- thetas¶
The angles for the number-number interactions.
- Type:
np.ndarray
Methods
from_diag_coulomb_mats(diag_coulomb_mats)Initialize the operator from a diagonal Coulomb matrix.
from_parameters(params, norb, interaction_pairs)Initialize the operator from a real-valued parameter vector.
n_params(interaction_pairs)Return the number of parameters of an ansatz with given settings.
to_diag_coulomb_mats()Convert the operator to diagonal Coulomb matrices.
to_parameters()Convert the operator to a real-valued parameter vector.
Attributes