qbraid_qir.qasm3.Qasm3Module

class Qasm3Module(name, module, num_qubits, num_clbits, elements)[source]

A module representing an openqasm3 quantum program using QIR.

Parameters:
  • name (str) – Name of the module.

  • module (Module) – QIR Module instance.

  • num_qubits (int) – Number of qubits in the circuit.

  • num_clbits (int) – Number of classical bits in the circuit.

  • elements (list[Statement]) – list of openqasm3 Statements.

__init__(name, module, num_qubits, num_clbits, elements)[source]

Methods

__init__(name, module, num_qubits, ...)

accept(visitor)

from_program(program[, module])

Class method.

Attributes

module

Returns the QIR Module instance.

name

Returns the name of the module.

num_clbits

Returns the number of classical bits in the circuit.

num_qubits

Returns the number of qubits in the circuit.