cirq.ZipLongest

Iterate over constituent sweeps in parallel

Inherits From: Zip, Sweep

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.

ValueError if an input sweep if completely empty.

keys The keys for the all of the sympy.Symbols that are resolved.

Methods

param_tuples

View source

An iterator over (key, value) pairs assigning Symbol key to value.

__add__

View source

__eq__

View source

Return self==value.

__getitem__

View source

__iter__

View source

__len__

View source

__mul__

View source

__ne__

View source

Return self!=value.