Skip to content

Commit

Permalink
Merge pull request #226 from juliendrapeau/main
Browse files Browse the repository at this point in the history
 apply_gate_raw: fix optional argument bug
  • Loading branch information
jcmgray authored Apr 14, 2024
2 parents 0610098 + 12506e9 commit f207c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quimb/tensor/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f207c36

Please sign in to comment.