From fee82c1507ba9e91066f9d5530036b3d7ae45f2b Mon Sep 17 00:00:00 2001 From: ILYA Drozdov Date: Fri, 28 Feb 2025 20:03:38 +0000 Subject: [PATCH] Correct the sweep order example in the docstring --- cirq-core/cirq/study/sweeps.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cirq-core/cirq/study/sweeps.py b/cirq-core/cirq/study/sweeps.py index c47d54aba45..ac1cb598091 100644 --- a/cirq-core/cirq/study/sweeps.py +++ b/cirq-core/cirq/study/sweeps.py @@ -212,7 +212,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: