From 12506e983b05bd08781e909ad804dc10e192eede Mon Sep 17 00:00:00 2001 From: Julien Drapeau <105319713+juliendrapeau@users.noreply.github.com> Date: Sat, 13 Apr 2024 19:23:15 -0400 Subject: [PATCH] apply_gate_raw: fix optional argument bug --- quimb/tensor/circuit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quimb/tensor/circuit.py b/quimb/tensor/circuit.py index 8478b7d3..27e21740 100644 --- a/quimb/tensor/circuit.py +++ b/quimb/tensor/circuit.py @@ -1606,7 +1606,7 @@ def apply_gate_raw(self, U, where, gate_round=None, **gate_opts): """Apply the raw array ``U`` as a gate on qubits in ``where``. It will be assumed to be unitary for the sake of computing reverse lightcones. """ - gate = Gate.from_raw(U, where, gate_round) + gate = Gate.from_raw(U, where, round=gate_round) self._apply_gate(gate, **gate_opts) def apply_gates(self, gates, **gate_opts):