qib.operator.field_operator.FieldOperatorTerm

class qib.operator.field_operator.FieldOperatorTerm(opdesc: Sequence[IFODesc], coeffs)[source]

Bases: object

Field operator term in second quantization, e.g., \(\sum_{j,k} h_{j,k} a^{\dagger}_j a_k\).

Each summation index is associated with a field and the operator type (e.g., fermionic creation operator).

Methods

adjoint

Construct the adjoint (conjugate transpose) field operator term.

fields

List of all fields appearing in the term.

is_hermitian

Whether the field operator term is Hermitian.

adjoint()[source]

Construct the adjoint (conjugate transpose) field operator term.

fields()[source]

List of all fields appearing in the term.

is_hermitian()[source]

Whether the field operator term is Hermitian.