cirq.Points
A simple sweep with explicitly supplied values.
Inherits From: Sweep
cirq.Points(
key: 'cirq.TParamKey',
points: Sequence[float],
metadata: Optional[Any] = None
) -> None
Used in the notebooks
Args |
key
|
sympy.Symbol or equivalent to sweep across.
|
points
|
sequence of floating point values that represent
the values to sweep across. The length of the sweep
will be equivalent to the length of this sequence.
|
metadata
|
Optional metadata to attach to the sweep to
annotate the sweep or its variable.
|
Attributes |
keys
|
The keys for the all of the sympy.Symbols that are resolved.
|
Methods
param_tuples
View source
param_tuples() -> Iterator[Params]
An iterator over (key, value) pairs assigning Symbol key to value.
__add__
View source
__add__(
other: 'Sweep'
) -> 'Sweep'
__eq__
View source
__eq__(
other
)
Return self==value.
__getitem__
View source
__getitem__(
val: Union[int, slice]
) -> Union[resolver.ParamResolver, 'Sweep']
__iter__
View source
__iter__() -> Iterator[cirq.ParamResolver
]
__len__
View source
__len__() -> int
__mul__
View source
__mul__(
other: 'Sweep'
) -> 'Sweep'
__ne__
View source
__ne__(
other
) -> bool
Return self!=value.
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."],[],[]]