cirq.SupportsParameterization
An object that can be parameterized by Symbols and resolved
cirq.SupportsParameterization(
*args, **kwargs
)
via a ParamResolver
Methods
_is_parameterized_
View source
_is_parameterized_() -> bool
Whether the object is parameterized by any Symbols that require resolution.
Returns True if the object has any unresolved Symbols
and False otherwise.
_parameter_names_
View source
_parameter_names_() -> AbstractSet[str]
Returns a collection of string names of parameters that require resolution.
If _isparameterized is False, the collection is empty.
The converse is not necessarily true, because some objects may report
that they are parameterized when they contain symbolic constants which
need to be evaluated, but no free symbols.
_resolve_parameters_
View source
_resolve_parameters_(
resolver: 'cirq.ParamResolver', recursive: bool
) -> Self
Resolve the parameters in the effect.
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.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "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."]]