Skip to content

Commit

Permalink
Correct the sweep order example in the docstring (quantumlib#7104)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikd-sci authored Feb 28, 2025
1 parent e60e686 commit 2ad4136
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cirq-core/cirq/study/sweeps.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ class Product(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).
assignments: (0, 2), (0, 3), (1, 2), (1, 3), (2, 2), (2, 3).
That is, the leftmost sweep is the outer loop in a product of sweeps.
"""

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

0 comments on commit 2ad4136

Please sign in to comment.