load_qasm_circuit

GateCompiler.load_qasm_circuit(source)

Load an OpenQASM 2 circuit with QUASAR native-gate extensions.

Reads the custom native gates – crot, crotx, crotxpi2, croty – alongside the OpenQASM 2 standard library, so a circuit written in this gate set’s own operations parses.

Parameters:

source (str | object) – Path, string content, or readable file-like object.

Return type:

QuantumCircuit

Returns:

The parsed Qiskit circuit.