fh_comm.hamiltonian_ops.HamiltonianOp¶
- class fh_comm.hamiltonian_ops.HamiltonianOp[source]¶
Bases:
ABCParent class for fermionic Hamiltonian operators or commutators between them.
Methods
Represent the operator in terms of fermionic field operators.
Indicate whether the operator acts as zero operator.
Upper bound on the spectral norm of the operator.
Return a normalized copy of the operator together with its scalar prefactor.
Whether current operator is equal to 'other' up to a scalar factor.
Support of the operator: lattice sites which it acts on (including spin).
Translate by shift and return the translated operator.
Attributes
Maximum number of fermionic creation and annihilation operators multiplied together.
max_nmodes_exact_norm- abstract as_field_operator() FieldOp[source]¶
Represent the operator in terms of fermionic field operators.
- abstract property fermi_weight: int¶
Maximum number of fermionic creation and annihilation operators multiplied together.
For example, the product of three number operators has weight 6.
- abstract normalize() tuple[source]¶
Return a normalized copy of the operator together with its scalar prefactor.
- abstract proportional(other) bool[source]¶
Whether current operator is equal to ‘other’ up to a scalar factor.