is_ket_equal
Method of BasisState.
is_ket_equal(const BasisState other) -> bool
Checks if two product states have the same ket configuration.
Returns true if both product states represent the same basis state, ignoring coefficients. Note: The method returns true even if the coefficients are distinct. This method only checks if the corresponding computational basis states are the same. To compare coefficient as well, please use "=="
Parameters
- other: Second product state to compare.