We're celebrating World Quantum Day 2022! Join us

Module: cirq.testing.equals_tester

A utility class for testing equality methods.

To test an equality method, create an EqualityTester and add several groups of items to it. The equality tester will check that the items within each group are all equal to each other, but that items between each group are never equal to each other. It will also check that ab implies hash(a)hash(b).

Classes

class EqualsTester: Tests equality against user-provided disjoint equivalence groups.