You are working on the quantumlib/Cirq repository. The source code is checked out at /testbed at commit…
You are working on the quantumlib/Cirq repository. The source code is checked out at /testbed at commit…: a task in SWE-Lego-RL-2699 (Harbor dataset). Running the following circuit (and inspecting the states at each moment): q0 = cirq.GridQubit(0, 0) q1 = cirq.GridQubit(0, 1) q2 =…
The task
Running the following circuit (and inspecting the states at each moment): ``` q0 = cirq.GridQubit(0, 0) q1 = cirq.GridQubit(0, 1) q2 = cirq.GridQubit(0, 2) circuit = cirq.Circuit() circuit.append(cirq.X(q0)) circuit.append(cirq.rx(1).controlled()(q0,q1)) circuit.append(cirq.rx(1).controlled()(q1,q2)) simulator =…
Part of Lego-X/Lego-RL-2699.