GTorlai / PastaQ.jl

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

`nqubits` doesn't handle gates with sites in tuple correctly #279

Closed mtfishman closed 2 years ago

mtfishman commented 2 years ago
julia> nqubits([("CX", 1, 2)])
1

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

This leads to one of the issues pointed out in #278 when passing gate of the form ("CX", 1, 2) to buildcircuit/runcircuit.