qiskit.opflow.OperatorBase.equals¶
- abstract OperatorBase.equals(other)[código fonte]¶
Evaluate Equality between Operators, overloaded by
==
. Only returns True if self and other are of the same representation (e.g. a DictStateFn and CircuitStateFn will never be equal, even if their vector representations are equal), their underlying primitives are equal (this means for ListOps, OperatorStateFns, or EvolvedOps the equality is evaluated recursively downwards), and their coefficients are equal.- Parâmetros
other (
OperatorBase
) – TheOperatorBase
to compare to self.- Tipo de retorno
bool
- Retorno
A bool equal to the equality of self and other.