Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem about using enumerate_cliffords #60

Closed
ghost opened this issue Jun 11, 2022 · 1 comment
Closed

Problem about using enumerate_cliffords #60

ghost opened this issue Jun 11, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Jun 11, 2022

Hi Stefan:

I just update QuantumClifford to v"0.5.2". But now I face a problem when I try to generate all 2-qubit gates by collect(enumerate_cliffords(2)). The error I got is

julia> cliffords = collect(enumerate_cliffords(2))
ERROR: MethodError: no method matching var"#rowswap!#43"(::Bool, ::typeof(QuantumClifford.rowswap!)                                                             , ::Stabilizer{Vector{UInt8}, Matrix{UInt64}}, ::Int64, ::Int64)
Closest candidates are:
  var"#rowswap!#43"(::Val{B}, ::typeof(QuantumClifford.rowswap!), ::Stabilizer, ::Any, ::Any) where                                                              B at ~/.julia/packages/QuantumClifford/jpKJt/src/QuantumClifford.jl:895
Stacktrace:
 [1] symplecticGS(pauli::PauliOperator{Array{UInt8, 0}, Vector{UInt64}}; padded_n::Int64)
   @ QuantumClifford ~/.julia/packages/QuantumClifford/jpKJt/src/enumeration.jl:107
 [2] enumerate_cliffords_slow(n::Int64, i::BigInt; padded_n::Int64, onlycoset::Bool)
   @ QuantumClifford ~/.julia/packages/QuantumClifford/jpKJt/src/enumeration.jl:133
 [3] #enumerate_cliffords#148
   @ ~/.julia/packages/QuantumClifford/jpKJt/src/enumeration.jl:124 [inlined]
 [4] #152
   @ ./none:0 [inlined]
 [5] iterate
   @ ./generator.jl:47 [inlined]
 [6] collect(itr::Base.Generator{UnitRange{BigInt}, QuantumClifford.var"#152#154"{Int64, Int64}})
   @ Base ./array.jl:724
 [7] top-level scope
   @ REPL[6]:1

Is anything changed in the new version of QuantumClifford?

Thanks.

@Krastanov
Copy link
Member

Krastanov commented Jun 11, 2022

Indeed, there was a small refactor in an untested piece of code. There will be a fixed version in an hour or so. Thanks for pointing this out!

@Krastanov Krastanov added the bug Something isn't working label Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant