cirq_rigetti.quil_output.QuilFormatter
A unique formatter to correctly output values to QUIL.
cirq_rigetti.quil_output.QuilFormatter(
qubit_id_map: Dict['cirq.Qid', str], measurement_id_map: Dict[str, str]
) -> None
Args |
qubit_id_map
|
A dictionary {qubit, quil_output_string} for
the proper QUIL output for each qubit.
|
measurement_id_map
|
A dictionary {measurement_key,
quil_output_string} for the proper QUIL output for each
measurement key.
|
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
get_field
get_field(
field_name, args, kwargs
)
get_value
get_value(
key, args, kwargs
)
parse
parse(
format_string
)
vformat(
format_string, args, kwargs
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-27 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-27 UTC."],[],[]]