Skip to content

Commit

Permalink
add reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Fe-r-oz committed Nov 18, 2024
1 parent 22aaa2d commit 289ae2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nonclifford.jl
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ function projectrand!(sm::GeneralizedStabilizer, p::PauliOperator)
# Implementation of the in-place Pauli measurement quantum operation (Algorithm 2)
# on a generalized stabilizer by Ted Yoder (Page 8) from [yoder2012generalization](@cite).
if all(x -> x == 0, b)
# (Eq. 14-17)
for ((dᵢ, dⱼ), χ) in dict
if (im^phase * (-tone)^(dot(dᵢ, c)) == 1) && (im^phase * (-tone)^(dot(dⱼ, c)) == 1) # (Eq. 16)
newdict[(dᵢ,dⱼ)] += χ
Expand Down

0 comments on commit 289ae2d

Please sign in to comment.