QuantumClifford.jl
QuantumClifford.jl copied to clipboard
add `LinearAlgebra.inv` methods for `AbstractSymbolicOperator` subtypes
julia> inv(tCNOT)
X₁ ⟼ + XX
X₂ ⟼ + _X
Z₁ ⟼ + Z_
Z₂ ⟼ + ZZ
julia> inv(sCNOT(1,2))
ERROR: MethodError: no method matching inv(::sCNOT)
julia> inv(CliffordOperator(sCNOT))
X₁ ⟼ + XX
X₂ ⟼ + _X
Z₁ ⟼ + Z_
Z₂ ⟼ + ZZ