Acquaints each of the qubits with another set specified by an acquaintance gate.
cirq.contrib.acquaintance.gates.acquaint_insides(
swap_gate: 'cirq.Gate',
acquaintance_gate: 'cirq.Operation',
qubits: Sequence['cirq.Qid'],
before: bool,
layers: cirq.contrib.acquaintance.gates.Layers
,
mapping: Dict[cirq.Qid
, int]
) -> None
Args |
qubits
|
The list of qubits of which half are individually acquainted
with another list of qubits.
|
layers
|
The layers to put gates into.
|
acquaintance_gate
|
The acquaintance gate that acquaints the end qubit
with another list of qubits.
|
before
|
Whether the acquainting is done before the shift.
|
swap_gate
|
The gate used to swap logical indices.
|
mapping
|
The mapping from qubits to logical indices. Used to keep track
of the effect of inside-acquainting swaps.
|