Skip to content
This repository has been archived by the owner on Jun 11, 2023. It is now read-only.

Commit

Permalink
QuantumClifford 0.5.0 introduced some renamings
Browse files Browse the repository at this point in the history
  • Loading branch information
Krastanov committed Mar 29, 2022
1 parent d4a3b76 commit 9bec1fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
8 changes: 4 additions & 4 deletions src/QuantumCliffordPlots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9bec1fa

Please sign in to comment.