cirq.testing.OrderTester.add_ascending_equivalence_group¶
-
OrderTester.add_ascending_equivalence_group(*group_items)[source]¶ Tries to add an ascending equivalence group to the order tester.
Asserts that the group items are equal to each other, but strictlyascending with regard to the already added groups.Adds the objects as a group.
Parameters: group_items – items making the equivalence group Raises: AssertionError– The group elements aren’t equal to each other, or items in another group overlap with the new group.