cirq.QasmOutput

class cirq.QasmOutput(operations: Union[cirq.ops.raw_types.Operation, Iterable[Any]], qubits: Tuple[cirq.ops.raw_types.Qid, ...], header: str = '', precision: int = 10, version: str = '2.0')[source]
__init__(operations: Union[cirq.ops.raw_types.Operation, Iterable[Any]], qubits: Tuple[cirq.ops.raw_types.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, bytes, int]) Write QASM output to a file specified by path.

Attributes

valid_id_re