diff --git a/Project.toml b/Project.toml index 94b60e0..0c0a60b 100644 --- a/Project.toml +++ b/Project.toml @@ -12,7 +12,7 @@ RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01" [compat] Makie = "0.16" Quantikz = "1.1.2" -QuantumClifford = "0.4.1" +QuantumClifford = "0.5" RecipesBase = "1.0" julia = "1.6" diff --git a/src/QuantumCliffordPlots.jl b/src/QuantumCliffordPlots.jl index ead3dd4..e19f137 100644 --- a/src/QuantumCliffordPlots.jl +++ b/src/QuantumCliffordPlots.jl @@ -95,13 +95,13 @@ using QuantumClifford.Experimental.NoisyCircuits function Quantikz.QuantikzOp(op::SparseGate) g = op.cliff - if g==CNOT + if g==tCNOT return Quantikz.CNOT(op.indices...) - elseif g==SWAP*CNOT*SWAP + elseif g==tSWAP*tCNOT*tSWAP return Quantikz.CNOT(op.indices[end:-1:begin]...) - elseif g==CPHASE + elseif g==tCPHASE return Quantikz.CPHASE(op.indices...) - elseif g==SWAP + elseif g==tSWAP return Quantikz.SWAP(op.indices...) else return Quantikz.MultiControlU([],[],op.indices) # TODO Permit skipping the string