Skip to content

Commit

Permalink
Fix quimb Circuit option
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Sep 23, 2024
1 parent 96e6255 commit c9d9d01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/integration/python/test_quimb.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
using PythonCall
qtn = pyimport("quimb.tensor")

qc = qtn.Circuit(3)
# NOTE quimb.circuit.Circuit splits gates by default
qc = qtn.Circuit(3; gate_opts=Dict(["contract" => false]))
gates = [("H", 0), ("H", 1), ("CNOT", 1, 2), ("CNOT", 0, 2), ("H", 0), ("H", 1), ("H", 2)]
qc.apply_gates(gates)

Expand Down

0 comments on commit c9d9d01

Please sign in to comment.