QuantumClifford.jl icon indicating copy to clipboard operation
QuantumClifford.jl copied to clipboard

add `LinearAlgebra.inv` methods for `AbstractSymbolicOperator` subtypes

Open Krastanov opened this issue 1 year ago • 0 comments

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

Krastanov avatar Jun 05 '24 15:06 Krastanov