circuit_knitting.utils.transforms.SeparatedCircuits¶
- class SeparatedCircuits(subcircuits: dict[Hashable, QuantumCircuit], qubit_map: list[tuple[Hashable, int]])[source]¶
Bases:
NamedTuple
Named tuple for result of
separate_circuit()
.subcircuits
is a dict of circuits, keyed by each partition label.qubit_map
is a list with length equal to the number of qubits in the original circuit. Each element of that list is a 2-tuple which includes the partition label of that qubit, together with the index of that qubit in the corresponding subcircuit.Create new instance of SeparatedCircuits(subcircuits, qubit_map)
Methods
Attributes
qubit_map
Alias for field number 1
subcircuits
Alias for field number 0