Executes an acquaintance strategy.
cirq.contrib.acquaintance.StrategyExecutorTransformer(
execution_strategy: cirq.contrib.acquaintance.executor.ExecutionStrategy
) -> None
Args |
execution_strategy
|
The ExecutionStrategy to execute.
|
Raises |
ValueError
|
if execution_strategy is None.
|
Methods
__call__
View source
__call__(
circuit: cirq.AbstractCircuit
,
context: Optional['cirq.TransformerContext'] = None
) -> cirq.Circuit
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
|