qrisp.QuantumCircuit.from_qasm_str#

classmethod QuantumCircuit.from_qasm_str(qasm_string: str) QuantumCircuit[source]#

Loads a QuantumCircuit from a QASM String.

Parameters:
qasm_stringstr

A string obeying the syntax of the OpenQASM specification.

Returns:
QuantumCircuit

The corresponding QuantumCircuit.