qib.operator.abstract_operator.AbstractOperator

class qib.operator.abstract_operator.AbstractOperator[source]

Bases: ABC

Abstract parent class for operators.

Methods

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.

abstract as_matrix()[source]

Generate the (sparse) matrix representation of the operator.

abstract fields()[source]

List of all fields appearing in the operator.

abstract is_hermitian()[source]

Whether the operator is Hermitian.

abstract is_unitary()[source]

Whether the operator is unitary.