View source on GitHub |
Formatting Arguments for outputting QASM code.
cirq.QasmArgs(
precision: int = 10,
version: str = '2.0',
qubit_id_map: Optional[Dict['cirq.Qid', str]] = None,
meas_key_id_map: Optional[Dict[str, str]] = None
) -> None
Methods
check_unused_args
check_unused_args(
used_args, args, kwargs
)
convert_field
convert_field(
value, conversion
)
format
format(
format_string, *args, /, **kwargs
)
format_field
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
validate_version(
*supported_versions
) -> None
vformat
vformat(
format_string, args, kwargs
)