jcmgray / quimb

A python library for quantum information and many-body calculations including tensor networks.
http://quimb.readthedocs.io
Other
455 stars 107 forks source link

apply_gate_raw: fix optional argument bug #226

Closed juliendrapeau closed 2 months ago

juliendrapeau commented 2 months ago

In the method apply_gate_raw of the class Circuit, the optional argument gate_round was input as a positional argument to the method from_raw. This resulted in a conflict with the positional argument control. Fixed by adding the parameter gate_round as a positional argument in from_raw.

jcmgray commented 2 months ago

LGTM, thanks!