fh_comm.hamiltonian_ops.HoppingOp

class fh_comm.hamiltonian_ops.HoppingOp(i: Sequence[int], j: Sequence[int], s: int, coeff: float)[source]

Bases: HamiltonianOp

Hopping term \(a^{\dagger}_{i\sigma} a_{j\sigma} + h.c.\) between sites i and j with spin s.

Methods

as_field_operator

Represent the operator in terms of fermionic field operators.

flip

Interchange i <-> j, resulting in logically the same operator.

is_zero

Indicate whether the operator acts as zero operator.

norm_bound

Upper bound on the spectral norm of the operator.

normalize

Return a normalized copy of the operator together with its scalar prefactor.

proportional

Whether current operator is equal to 'other' up to a scalar factor.

standard_form

Return the "standard form" of the operator, such that i <= j (lexicographical ordering).

support

Support of the operator: lattice sites which it acts on (including spin).

translate

Translate by shift and return the translated operator.

Attributes

fermi_weight

Maximum number of fermionic creation and annihilation operators multiplied together.

max_nmodes_exact_norm

__add__(other)[source]

Logical sum.

__neg__()[source]

Logical negation.

__str__() str[source]

Represent the operator as a string.

__sub__(other)[source]

Logical difference.

as_field_operator() FieldOp[source]

Represent the operator in terms of fermionic field operators.

property fermi_weight: int

Maximum number of fermionic creation and annihilation operators multiplied together.

flip()[source]

Interchange i <-> j, resulting in logically the same operator.

is_zero() bool[source]

Indicate whether the operator acts as zero operator.

norm_bound() float[source]

Upper bound on the spectral norm of the operator.

normalize() tuple[source]

Return a normalized copy of the operator together with its scalar prefactor.

proportional(other) bool[source]

Whether current operator is equal to ‘other’ up to a scalar factor.

standard_form()[source]

Return the “standard form” of the operator, such that i <= j (lexicographical ordering).

support() list[tuple][source]

Support of the operator: lattice sites which it acts on (including spin).

translate(shift: Sequence[int])[source]

Translate by shift and return the translated operator.