View source on GitHub |
Tells StrategyExecutorTransformer
how to execute an acquaintance strategy.
An execution strategy tells StrategyExecutorTransformer
how to execute
an acquaintance strategy, i.e. what gates to implement at the available
acquaintance opportunities.
Attributes | |
---|---|
device
|
The device for which the executed acquaintance strategy should be valid. |
initial_mapping
|
The initial mapping of logical indices to qubits. |
Methods
get_operations
@abc.abstractmethod
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__
__call__(
*args, **kwargs
)
Returns the final mapping of logical indices to qubits after executing an acquaintance strategy.
Class Variables | |
---|---|
keep_acquaintance |
False
|