Module: cirq.contrib.acquaintance.permutation
Classes
class DecomposePermutationGates
class LinearPermutationGate
: A permutation gate that decomposes a given permutation using a linear sorting network.
class MappingDisplayGate
: Displays the indices mapped to a set of wires.
class PermutationGate
: A permutation gate indicates a change in the mapping from qubits to logical indices.
class SwapPermutationGate
: Generic swap gate.
Functions
DECOMPOSE_PERMUTATION_GATES(...)
EXPAND_PERMUTATION_GATES(...)
display_mapping(...)
: Inserts display gates between moments to indicate the mapping throughout the circuit.
get_logical_operations(...)
: Gets the logical operations specified by the physical operations and initial mapping.
return_to_initial_mapping(...)
update_mapping(...)
: Updates a mapping (in place) from qubits to logical indices according to a set of permutation gates.
uses_consistent_swap_gate(...)
Type Aliases
LogicalGates
LogicalIndexSequence
LogicalMapping
Other Members |
LogicalIndex
|
Instance of typing.TypeVar
|
LogicalMappingKey
|
Instance of typing.TypeVar
|
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.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "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."],[],[]]