cirq.testing.OrderTester.add_ascending¶
-
OrderTester.add_ascending(*items)[source]¶ Tries to add a sequence of ascending items to the order tester.
This methods asserts that items must all be ascendingwith regard to both each other and the elements which have been alreadyadded during previous calls.Some of the previously added elements might be equivalence groups,which are supposed to be equal to each other within that group.Parameters: *items – The sequence of strictly ascending items. Raises: AssertionError– Items are not ascending either with regard to each other, or with regard to the elements which have been added before.