cirq.Product

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

Cartesian product of one or more sweeps.

If one sweep assigns ‘a’ to the values 0, 1, 2, and the second sweep
assigns ‘b’ to the values 2, 3, then the product is a sweep that
assigns the tuple (‘a’,’b’) to all possible combinations of these
assignments: (0, 2), (1, 2), (2, 2), (0, 3), (1, 3), (2, 3).
__init__(*factors: cirq.study.sweeps.Sweep) → None[source]

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

Methods

param_tuples()

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.