fh_comm.field_ops.FieldOp¶
- class fh_comm.field_ops.FieldOp(terms: Sequence[ProductFieldOp])[source]¶
Bases:
objectSum of products of fermionic field operators.
Methods
Generate the sparse matrix representation on a virtual lattice consisting of the sites acted on by the field operators.
Generate the sparse matrix representation of the operator embedded in a square lattice with dimensions latt_shape and periodic boundary conditions.
Find the coefficients in the representation \(\sum_{i,j} h_{ij} a^{\dagger}_i a_j\), assuming that the field operator actually has this form.
Support of the operator: lattice sites which it acts on (including spin).
- as_compact_matrix()[source]¶
Generate the sparse matrix representation on a virtual lattice consisting of the sites acted on by the field operators.
- as_matrix(latt_shape: Sequence[int], translatt: SubLattice | None = None)[source]¶
Generate the sparse matrix representation of the operator embedded in a square lattice with dimensions latt_shape and periodic boundary conditions. Optionally using shifted copies on sublattice translatt.