Skip to content

Commit

Permalink
use minimal phase formula for sInvZCrY (QuantumSavory#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fe-r-oz authored Sep 27, 2024
1 parent f420834 commit 57a0069
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/symbolic_cliffords.jl
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ end
@qubitop2 YCY (x1z2x2, z1x2z2 , x1x2z1 , x1z1z2, ~iszero( (x1 & ~z1 & ~x2 & z2) | (~x1 & z1 & x2 & ~z2)))
@qubitop2 YCZ (x1x2 , x2z1 , x2 , z2x1z1, ~iszero( (x2 & (x1 z1) & (z2 x1)) ))

@qubitop2 ZCrY (x1, x1z1x2z2, x1x2, x1z2, ~iszero((x1 & ~z1 & x2) | (x1 & ~z1 & ~z2) | (x1 & x2 & ~z2)))
@qubitop2 InvZCrY (x1, x1z1x2z2, x1x2, x1z2, ~iszero((x1 & z1 & ~x2 & ~z2) | (x1 & ~z1 & ~x2 & z2) | (x1 & z1 & ~x2 & z2) | (x1 & z1 & x2 & z2)))
@qubitop2 ZCrY (x1, x1z1x2z2, x1x2, x1z2, ~iszero((x1 &~z1 & x2) | (x1 & ~z1 & ~z2) | (x1 & x2 & ~z2)))
@qubitop2 InvZCrY (x1, x1z1x2z2, x1x2, x1z2, ~iszero((x1 & z1 &~x2) | (x1 & z1 & z2) | (x1 &~x2 & z2)))

#=
To get the boolean formulas for the phase, it is easiest to first write down the truth table for the phase:
Expand Down

0 comments on commit 57a0069

Please sign in to comment.