qib.operator.field_operator.FieldOperator

class qib.operator.field_operator.FieldOperator(terms: Sequence[FieldOperatorTerm] | None = None)[source]

Bases: AbstractOperator

Field operator in second quantized form.

Methods

adjoint

Construct the adjoint (conjugate transpose) field operator.

as_matrix

Generate the (sparse) matrix representation of the operator.

fields

List of all fields appearing in the operator.

is_hermitian

Whether the operator is Hermitian.

is_unitary

Whether the operator is unitary.

__add__(other)[source]

Logical sum of two field operators.

adjoint()[source]

Construct the adjoint (conjugate transpose) field operator.

as_matrix()[source]

Generate the (sparse) matrix representation of the operator.

fields()[source]

List of all fields appearing in the operator.

is_hermitian()[source]

Whether the operator is Hermitian.

is_unitary()[source]

Whether the operator is unitary.