Skip to content

Commit 2ad4136

Browse files
authoredFeb 28, 2025··
Correct the sweep order example in the docstring (#7104)
1 parent e60e686 commit 2ad4136

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎cirq-core/cirq/study/sweeps.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ class Product(Sweep):
216216
If one sweep assigns 'a' to the values 0, 1, 2, and the second sweep
217217
assigns 'b' to the values 2, 3, then the product is a sweep that
218218
assigns the tuple ('a','b') to all possible combinations of these
219-
assignments: (0, 2), (1, 2), (2, 2), (0, 3), (1, 3), (2, 3).
219+
assignments: (0, 2), (0, 3), (1, 2), (1, 3), (2, 2), (2, 3).
220+
That is, the leftmost sweep is the outer loop in a product of sweeps.
220221
"""
221222

222223
def __init__(self, *factors: Sweep) -> None:

0 commit comments

Comments
 (0)
Please sign in to comment.