Skip to content

Commit

Permalink
fix test_nonclifford.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
thofma committed Aug 1, 2024
1 parent 319f6d7 commit f5dfe72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 4 additions & 6 deletions test/test_doctests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@

ENV["LINES"] = 80 # for forcing `displaysize(io)` to be big enough
ENV["COLUMNS"] = 80
@testset "Doctests" begin
DocMeta.setdocmeta!(QuantumClifford, :DocTestSetup, :(using QuantumClifford; using QuantumClifford.ECC); recursive=true)
doctest(QuantumClifford,
#fix=true
)
end
DocMeta.setdocmeta!(QuantumClifford, :DocTestSetup, :(using QuantumClifford; using QuantumClifford.ECC); recursive=true)
doctest(QuantumClifford,
#fix=true
)
end
4 changes: 1 addition & 3 deletions test/test_nonclifford.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
using InteractiveUtils
using Random

##

@testset "Pauli decomposition into destabilizers" begin
for n in [1,2,63,64,65,66,300]
p = random_pauli(n; nophase=true)
Expand Down Expand Up @@ -32,7 +30,7 @@
apply!(state, tgate)
apply!(state, tgate)

@test state.destabweights |> values |> collect == [1]
@test isapprox(state.destabweights |> values |> collect, [1])
@test state.destabweights |> keys |> collect == [([1],[1])]
end

Expand Down

0 comments on commit f5dfe72

Please sign in to comment.