View source on GitHub |
Realizes acquaintance opportunities.
Inherits From: ExecutionStrategy
cirq.contrib.acquaintance.inspection_utils.LogicalAnnotator(
initial_mapping: cirq.contrib.acquaintance.executor.LogicalMapping
) -> None
Args | |
---|---|
initial_mapping
|
The initial mapping of qubits to logical indices. |
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
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
|