qbraid_qir.qasm3.QasmQIRModule
- class QasmQIRModule(name, qasm_module, llvm_module)[source]
A module representing an openqasm3 quantum program using QIR.
- Parameters:
name (str) – Name of the module.
qasm_module (pyqasm.elements.Qasm3Module) – The pyqasm qasm3 module.
llvm_module (pyqir.Module) – The QIR module.
Methods
__init__(name, qasm_module, llvm_module)accept(visitor)Attributes
llvm_moduleReturns the QIR Module instance.
nameReturns the name of the module.
num_clbitsGet the number of classical bits in the program.
num_qubitsGet the number of qubits in the program.
qasm_programReturns the QASM3 program.