Skip to content

Commit 57a0069

Browse files
authored
use minimal phase formula for sInvZCrY (#340)
1 parent f420834 commit 57a0069

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/symbolic_cliffords.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ end
323323
@qubitop2 YCY (x1z2x2, z1x2z2 , x1x2z1 , x1z1z2, ~iszero( (x1 & ~z1 & ~x2 & z2) | (~x1 & z1 & x2 & ~z2)))
324324
@qubitop2 YCZ (x1x2 , x2z1 , x2 , z2x1z1, ~iszero( (x2 & (x1 z1) & (z2 x1)) ))
325325

326-
@qubitop2 ZCrY (x1, x1z1x2z2, x1x2, x1z2, ~iszero((x1 & ~z1 & x2) | (x1 & ~z1 & ~z2) | (x1 & x2 & ~z2)))
327-
@qubitop2 InvZCrY (x1, x1z1x2z2, x1x2, x1z2, ~iszero((x1 & z1 & ~x2 & ~z2) | (x1 & ~z1 & ~x2 & z2) | (x1 & z1 & ~x2 & z2) | (x1 & z1 & x2 & z2)))
326+
@qubitop2 ZCrY (x1, x1z1x2z2, x1x2, x1z2, ~iszero((x1 &~z1 & x2) | (x1 & ~z1 & ~z2) | (x1 & x2 & ~z2)))
327+
@qubitop2 InvZCrY (x1, x1z1x2z2, x1x2, x1z2, ~iszero((x1 & z1 &~x2) | (x1 & z1 & z2) | (x1 &~x2 & z2)))
328328

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

0 commit comments

Comments
 (0)