|View source on GitHub|
A greedy execution strategy.
cirq.contrib.acquaintance.executor.LogicalMapping, device: 'cirq.Device' = None ) -> None
When an acquaintance opportunity is reached, all gates acting on those qubits in any order are inserted.
||The gates to insert.|
||The initial mapping of qubits to logical indices.|
||The device upon which to execute the strategy.|
||If not all gates are of the same arity.|
||The device for which the executed acquaintance strategy should be valid.|
||The initial mapping of logical indices to qubits.|
cirq.contrib.acquaintance.executor.LogicalGates) -> Dict[frozenset, LogicalGates]
Canonicalizes a set of gates by the qubits they act on.
Takes a set of gates specified by ordered sequences of logical indices, and groups those that act on the same qubits regardless of order.
get_operations( indices: Sequence[
cirq.contrib.acquaintance.executor.LogicalIndex], qubits: Sequence['cirq.Qid'] ) -> 'cirq.OP_TREE'
Gets the logical operations to apply to qubits.
__call__( *args, **kwargs )
Call self as a function.