tqec.circuit.schedule.remove_duplicate_operations
- remove_duplicate_operations(operations: list[Operation]) list[Operation] [source]
Removes all the duplicate mergeable operations from the given list.
An instance of cirq.Operation is considered mergeable if it is tagged with the tag returned by Plaquette.get_mergeable_tag(). If two operations in the provided list are considered equal AND are mergeable, this method will one of them.
- Returns:
a list containing a copy of the cirq.Operation instances from the given operations, without the mergeable tag, and with mergeable duplicates removed from the list.