|View source on GitHub|
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.
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.
update_mapping(...): Updates a mapping (in place) from qubits to logical indices according to a set of permutation gates.