Skip to content

Commit

Permalink
hotfix. all tests are passing
Browse files Browse the repository at this point in the history
  • Loading branch information
Shayan-P committed Jul 12, 2023
1 parent 0a06299 commit 9b96084
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ SIMD = "fdea26ae-647d-5447-a871-4b548cad5224"
SumTypes = "8e1ec7a9-0e02-4297-b0fe-6433085c89f2"

[weakdeps]
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
Quantikz = "b0d11df0-eea3-4d79-b4a5-421488cbf74b"
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"

[extensions]
QuantumCliffordGPUExt = "CUDA"
QuantumCliffordMakieExt = "Makie"
QuantumCliffordPlotsExt = "Plots"
QuantumCliffordQuantikzExt = "Quantikz"
QuantumCliffordGPUExt = "CUDA"

[compat]
Combinatorics = "1.0"
Expand Down
8 changes: 4 additions & 4 deletions test/test_gpu.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using QuantumClifford
using CUDA

@testset "CUDA" begin
@testset "GPU" begin
@test begin
p = P"_IZXY"
p_gpu = to_gpu(p)
Expand All @@ -17,7 +17,7 @@ using CUDA
@test begin
s = to_gpu(S"XX XZ")
op = SingleQubitOperator(sHadamard(1))
QuantumCliffordGPU._apply!(s, op)
QuantumClifford._apply!(s, op) # todo rewrite this with normal apply not _apply
correct = S"ZX ZZ"
to_cpu(s) == correct
end
Expand All @@ -26,7 +26,7 @@ using CUDA
s = random_stabilizer(10, 10)
s_gpu = to_gpu(s)
op = SingleQubitOperator(sHadamard(5))
QuantumCliffordGPU._apply!(s_gpu, op)
QuantumClifford._apply!(s_gpu, op) # todo rewrite this with normal apply not _apply
QuantumClifford._apply!(s, op)
to_cpu(s_gpu) == s
end
Expand All @@ -35,7 +35,7 @@ using CUDA
s = random_stabilizer(10, 10)
s_gpu = to_gpu(s)
op = sCNOT(2, 3)
QuantumCliffordGPU._apply!(s_gpu, op)
QuantumClifford._apply!(s_gpu, op) # todo rewrite this with normal apply not _apply
QuantumClifford._apply!(s, op)
to_cpu(s_gpu) == s
end
Expand Down

0 comments on commit 9b96084

Please sign in to comment.