cirq_google.study.Metadata
A dataclass holds extra information for sweeps.
View aliases
Main aliases
`cirq_google.study.device_parameter.Metadata`
cirq_google.study.Metadata(
device_parameters: Optional[Sequence[DeviceParameter]] = None,
is_const: bool = False,
label: Optional[str] = None,
unit: Optional[str] = None
)
Args |
device_parameters
|
If presents, it means it is reg_param sweep.
|
is_const
|
If true, the associated sweep value will be put in parameters instead of axes.
|
label
|
If presents, use it as column name instead of using self._key.
|
unit
|
If presents, the values in sweep are treated as values with this unit.
This is a temporary solution. This can be avoided if the values use tunits.
In this case, we should not keep unit information in metadata.
|
Attributes |
device_parameters
|
Dataclass field
|
is_const
|
Dataclass field
|
label
|
Dataclass field
|
unit
|
Dataclass field
|
Methods
__eq__
__eq__(
other
)
Return self==value.
Class Variables |
device_parameters
|
None
|
is_const
|
False
|
label
|
None
|
unit
|
None
|
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 2025-04-15 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 2025-04-15 UTC."],[],[]]