HF RL Explorer

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). y0 = cirq.PauliString({cirq.LineQubit(0): cirq.Y}) state = 0.5 np.eye(2) args = protocols.ApplyUnitaryArgs(target tensor=state, available…

The task

y0 = cirq.PauliString({cirq.LineQubit(0): cirq.Y}) state = 0.5 * np.eye(2) args = protocols.ApplyUnitaryArgs(target_tensor=state, available_buffer=np.zeros_like(state), axes=(0,)) result = protocols.apply_unitary(y0, args) ``` gives ``` >>> print(result) [[0. 0.] [0. 0.]] ``` numpy correctly throws a warning about…

Part of Lego-X/Lego-RL-2699.