Crate roqoqo_qasm

Crate roqoqo_qasm 

Source
Expand description

§roqoqo-qasm

QASM interface for qoqo.

Translates qoqo operations and circuits to QASM operations via the interface, and Create a Qasm file with QasmBackend.

Structs§

Backend
QASM backend to qoqo
TokenIterator
Struct implementing Iterator trait to lex string to computational Tokens.
VariableGatherer
Struct to keep track of variables present in input Circuit.

Enums§

Qasm2Dialect
Enum for setting the version of OpenQASM used
Qasm3Dialect
Enum for setting the version of OpenQASM used
QasmVersion
Enum for setting the version of OpenQASM used
Rule
Token
Enum combining different types of Tokens in an Expression.

Functions§

call_circuit
Translate the qoqo circuit into QASM ouput.
call_operation
Translates a qoqo operation to QASM (&str).
file_to_circuit
Translates a QASM file into a qoqo Circuit instance.
gate_definition
Outputs the QASM gate definition of many qoqo operations.
string_to_circuit
Translates a QASM string into a qoqo Circuit instance.