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

LogicalIndex Instance of typing.TypeVar
LogicalMappingKey Instance of typing.TypeVar