View source on GitHub
|
A simple sweep over linearly-spaced values.
Inherits From: Sweep
cirq.Linspace(
key: cirq.TParamKey,
start: float,
stop: float,
length: int,
metadata: (Any | None) = None
) -> None
Used in the notebooks
| Used in the guide | Used in the tutorials |
|---|---|
Attributes | |
|---|---|
keys
|
The keys for the all of the sympy.Symbols that are resolved. |
Methods
param_tuples
param_tuples() -> Iterator[Params]
An iterator over (key, value) pairs assigning Symbol key to value.
__add__
__add__(
other: Sweep
) -> Sweep
__eq__
__eq__(
other
)
Return self==value.
__getitem__
__getitem__(
val: (int | slice)
) -> (resolver.ParamResolver | Sweep)
__iter__
__iter__() -> Iterator[resolver.ParamResolver]
__len__
__len__() -> int
__mul__
__mul__(
other: Sweep
) -> Sweep
__ne__
__ne__(
other
) -> bool
Return self!=value.
View source on GitHub