MicrosoftDocs/quantum-docs-pr

Z gate error

nirajvenkat opened this issue · 4 comments

[Enter feedback here]
In this page you have in the last formula Z^(f(0)−f(1)) when I think this should be Z^(f(1)−f(0)).


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

I believe it should work either way, since 𝑍⁻¹ = 𝑍⁺ = 𝑍 (that is, Adjoint Z is the same operation as Z). Nonetheless, we definitely appreciate the feedback as to readability of the article. I'll go on and flag this to the docs team for awareness. Thanks for raising the issue!

I'll keep this issue open for our new tech writers joining this week @cgranade ;)

Thanks for the explanation @cgranade !

I agree to @cgranade. Notice that f(x) is a Boolean function, so $f(0)-f(1) \in {0,1,-1}$. Since Pauli Z is an orthogonal matrix $Z^(-1) = Z^(T) = Z$ in this case it works either way.