Module: cirq.contrib.acquaintance.permutation

Classes

class DecomposePermutationGates: An optimizer that expands composite operations via cirq.decompose.

class LinearPermutationGate: A permutation gate that decomposes a given permutation using a linear

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

class SwapPermutationGate: Generic swap gate.

Functions

DECOMPOSE_PERMUTATION_GATES(...)

EXPAND_PERMUTATION_GATES(...)

display_mapping(...): Inserts display gates between moments to indicate the mapping throughout

get_logical_operations(...): Gets the logical operations specified by the physical operations and

return_to_initial_mapping(...)

update_mapping(...): Updates a mapping (in place) from qubits to logical indices according to

uses_consistent_swap_gate(...)

Type Aliases

LogicalGates: The central part of internal API.

LogicalIndexSequence: The central part of internal API.

LogicalMapping: The central part of internal API.

LogicalIndex Instance of typing.TypeVar
LogicalMappingKey Instance of typing.TypeVar
TYPE_CHECKING False