cirq.QasmArgs(
precision: int = 10,
version: str = '2.0',
qubit_id_map: Dict['cirq.Qid', str] = None,
meas_key_id_map: Dict[str, str] = None
) -> None
Args |
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
check_unused_args(
used_args, args, kwargs
)
convert_field
convert_field(
value, conversion
)
format(
format_string, *args, /, **kwargs
)
View source
format_field(
value: Any, spec: str
) -> str
Method of string.Formatter that specifies the output of format().
get_field
get_field(
field_name, args, kwargs
)
get_value
get_value(
key, args, kwargs
)
parse
parse(
format_string
)
validate_version
View source
validate_version(
*supported_versions
) -> None
vformat(
format_string, args, kwargs
)