cirq.contrib.acquaintance.gates.acquaint_insides
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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-27 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-27 UTC."],[],[]]