cirq.Linspace¶
-
class
cirq.Linspace(key: str, start: float, stop: float, length: int)[source]¶ A simple sweep over linearly-spaced values.
-
__init__(key: str, start: float, stop: float, length: int) → None[source]¶ Creates a linear-spaced sweep for a given key.
For the given args, assigns to the list of valuesstart, start + (stop - start) / (length - 1), …, stop
Methods
param_tuples()An iterator over (key, value) pairs assigning Symbol key to value. Attributes
keysThe keys for the all of the Symbols that are resolved. -