View source on GitHub |
Iterate over constituent sweeps in parallel
cirq.ZipLongest(
*sweeps
) -> None
Analogous to itertools.zip_longest. Note that we iterate until all sweeps terminate, so if the sweeps are different lengths, the shorter sweeps will be filled by repeating their last value until all sweeps have equal length.
Note that this is different from itertools.zip_longest, which uses a fixed fill value.
Raises | |
---|---|
ValueError if an input sweep if completely empty. |
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: Union[int, slice]
) -> Union[resolver.ParamResolver, 'Sweep']
__iter__
__iter__() -> Iterator[cirq.ParamResolver
]
__len__
__len__() -> int
__mul__
__mul__(
other: 'Sweep'
) -> 'Sweep'
__ne__
__ne__(
other
) -> bool
Return self!=value.