import_qasm

Function import_qasm 

Source
pub fn import_qasm<S>(code: S) -> Circuit
where S: Into<String>,
Expand description

Creates a Circuit from OpenQASM2 code.

All gates are inlined up to the known gates defined in crate::gates. All qubits are initialized to zero. Note that not all QASM instructions are supported, such as measure or if.