# cirq.Zip¶

class cirq.Zip(*sweeps: cirq.study.sweeps.Sweep)[source]

Zip product (direct sum) of one or more sweeps.

If one sweep assigns ‘a’ to values 0, 1, 2, and the second sweep assigns ‘b’
to the values 3, 4, 5, then the zip is a sweep that assigns to the
tuple (‘a’, ‘b’) the pair-wise matched values (0, 3), (1, 4), (2, 5).
When iterating over a Zip, we iterate the individual sweeps in parallel,
stopping when the first component sweep stops. For example if one sweep
assigns ‘a’ to values 0, 1 and the second sweep assigns ‘b’ to the values
3, 4, 5, then the zip is a sweep that assigns to the tuple (‘a’, ‘b’) the
values (0, 3), (1, 4).
__init__(*sweeps: cirq.study.sweeps.Sweep) → None[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

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

Attributes

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