deltakit.circuit.GateLayer.transform_qubits#

GateLayer.transform_qubits(id_mapping: Mapping[T, U])#

Transform all gates in this gate layer according to the id mapping. No transformation is performed if the qubits id is not in the mapping.

Parameters:

id_mapping (Mapping[T, U]) – A mapping of qubit types to other qubit types