cirq.QasmOutput

class cirq.QasmOutput(operations: cirq.OP_TREE, qubits: Tuple[cirq.Qid, …], header: str = '', precision: int = 10, version: str = '2.0')[source]
__init__(operations: cirq.OP_TREE, qubits: Tuple[cirq.Qid, …], header: str = '', precision: int = 10, version: str = '2.0') → None[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

is_valid_qasm_id(id_str)

Test if id_str is a valid id in QASM grammar.

save(path)

Write QASM output to a file specified by path.

Attributes

valid_id_re