- Statevector.equiv(other, rtol=None, atol=None)¶
Return True if other is equivalent as a statevector up to global phase.
If other is not a Statevector, but can be used to initialize a statevector object, this will check that Statevector(other) is equivalent to the current statevector up to global phase.
other (Statevector) – an object from which a
Statevectorcan be constructed.
rtol (float) – relative tolerance value for comparison.
atol (float) – absolute tolerance value for comparison.
True if statevectors are equivalent up to global phase.
- Type renvoyé