cirq.QasmArgs

Formatting Arguments for outputting QASM code.

precision The number of digits after the decimal to show for numbers in the qasm code.
version The QASM version to target. Objects may return different qasm depending on version.
qubit_id_map A dictionary mapping qubits to qreg QASM identifiers.
meas_key_id_map A dictionary mapping measurement keys to creg QASM identifiers.

Methods

check_unused_args

convert_field

format

format_field

View source

Method of string.Formatter that specifies the output of format().

get_field

get_value

parse

validate_version

View source

vformat