qbraid_qir.qiskit.QiskitModule
- class QiskitModule(circuit, name, module, num_qubits, num_clbits, reg_sizes, elements)[source]
Represents a Qiskit quantum circuit prepared for QIR conversion.
- circuit
The original Qiskit QuantumCircuit.
- name
The name of the module.
- module
The PyQIR Module being built.
- num_qubits
Number of qubits in the circuit.
- num_clbits
Number of classical bits in the circuit.
- reg_sizes
List of sizes for each classical register.
Methods
__init__(circuit, name, module, num_qubits, ...)accept(visitor)Accept a visitor to process this module.
from_circuit(circuit[, module])Create a new QiskitModule from a Qiskit QuantumCircuit.
Attributes
Return the underlying Qiskit circuit.
Return the PyQIR module.
Return the module name.
Return the number of classical bits.
Return the number of qubits.