Skip to content

HXH† = Z; HYH† = −Y ; HZH† = X #285

Closed Answered by Krastanov
Fe-r-oz asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, Feroz!

Pardon the delay in answering, busy week. I am not completely sure I understand the question, so feel free to redirect my explanation.

A few things:

  • QuantumClifford does not provide any particularly useful adjoint methods for gates
  • H and H† are the same gate (true about H, X, Y, Z, CNOT, CPHASE, SWAP, any of the conditional □C□ gates, but not true in general)
  • U† is the same as U⁻¹ for any unitary gate
  • LinearAlgebra.inv methods are defined for CliffordOperator, but not for AbstractSymbolicOperator (created an issue about that #286)
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(C…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Fe-r-oz
Comment options

Answer selected by Fe-r-oz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants