qiskit_addon_cutting.utils.transforms.SeparatedCircuits

class SeparatedCircuits(subcircuits: dict[Hashable, QuantumCircuit], qubit_map: list[tuple[Hashable, int] | tuple[None, None]])[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. If the original qubit is unused and has been removed from the separated circuits, then that tuple will be equal to (None, None).

Create new instance of SeparatedCircuits(subcircuits, qubit_map)

Methods

Attributes

qubit_map

Alias for field number 1

subcircuits

Alias for field number 0