Skip to main content

parse_qasm

Function parse_qasm 

Source
pub fn parse_qasm(source: &str) -> Result<Circuit, QasmError>
Expand description

Parses the unitary part of an unconditional circuit.

Resets must precede gates and measurements on each wire, and measurements must be terminal. Both are removed from the returned circuit. Use super::LogicalVerifier to compare maps with classical branches.

ยงErrors

Returns a parse, boundary-order, or unsupported-conditional error.