mqt.core.ir.registers¶
Module Contents¶
- class QuantumRegister(start: int, size: int, name: str = '')¶
A class to represent a collection of qubits.
- Parameters:
start – The starting index of the quantum register.
size – The number of qubits in the quantum register.
name – The name of the quantum register. A name will be generated if not provided.
- class ClassicalRegister(start: int, size: int, name: str = '')¶
A class to represent a collection of classical bits.
- Parameters:
start – The starting index of the classical register.
size – The number of bits in the classical register.
name – The name of the classical register. A name will be generated if not provided.