cirq.contrib.acquaintance.StrategyExecutorTransformer

Executes an acquaintance strategy.

execution_strategy The ExecutionStrategy to execute.

ValueError if execution_strategy is None.

mapping

Methods

__call__

View source

Executes an acquaintance strategy using cirq.map_operations_and_unroll and mutates initial mapping.

Args
circuit 'cirq.Circuit' input circuit to transform.
context cirq.TransformerContext storing common configurable options for transformers.

Returns
A copy of the modified circuit after executing an acquaintance strategy on all instances of AcquaintanceOpportunityGate