From 2ad4136626b77b13c2cd7921535163412fa37cb2 Mon Sep 17 00:00:00 2001 From: "Ilya K. Drozdov" <64921116+ikd-sci@users.noreply.github.com> Date: Fri, 28 Feb 2025 21:50:27 +0000 Subject: [PATCH] Correct the sweep order example in the docstring (#7104) --- 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 1fd2dc4746a..a302a6fe881 100644 --- a/cirq-core/cirq/study/sweeps.py +++ b/cirq-core/cirq/study/sweeps.py @@ -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: