cirq.Product

Cartesian product of one or more sweeps.

Inherits From: Sweep

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).

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.