qandle.qasm module

class qandle.qasm.QasmRepresentation(gate_str: str, gate_value: str | float = '', qubit: str | int = '', qasm3_inputs: str = '', qasm3_outputs: str = '')[source]

Bases: object

A class representing a single gate in a quantum circuit

gate_str: str
gate_value: str | float = ''
qasm3_inputs: str = ''
qasm3_outputs: str = ''
qubit: str | int = ''
to_string() str[source]
qandle.qasm.convert_to_qasm(circuit, qasm_version: int = 2, include_header: bool = True)[source]

Convert a circuit to qasm