GTorlai / PastaQ.jl

Package for Simulation, Tomography and Analysis of Quantum Computers
Apache License 2.0
141 stars 23 forks source link

Fix `nqubits` for gates with a list of sites #280

Closed mtfishman closed 2 years ago

mtfishman commented 2 years ago

Now this works as expected:

julia> nqubits([("CX", 1, 2)])
2

julia> nqubits([("CX", (1, 2))])
2

Fixes #279 and part of #278.