The Modern Scientist

The Modern Scientist aspires to connect builders & the curious to forward-thinking ideas. Either you are novice or expert, TMS will share contents that fulfils your ambition and interest. Write with us: shorturl.at/hjO39

https://www.bing.com/images/create/hyperrealistic-image-of-students-enjoying-a-linear/1-65a25ca5c6ef46cb82607718d37cdaa6?id=8yAAbhJOXzMOxhRM%2B305Iw%3D%3D&view=detailv2&idpp=genimg&noidpclose=1&form=SYDBIC

Member-only story

Okay, Okay, Mathematics Can Be Underrated

3 min readJan 13, 2024

--

Y vs RY(pi)

In “Mathematics is Overrated” I give a specific example of how bra-ket notation and linear algebra fail to develop a complete intuition for how the ubiquitous Hadamard gate is implemented. I stand by that. However, I just fielded a question about Y vs RY(pi), and the matrices of these gates are probably the quickest way to highlight the difference between them.

First, let me paraphrase the question.

Different Statevectors

If you start at |0> and apply a Y gate, the resultant statevector is:

[ 0+0j, 0+1j ]

And if you start at |0> and apply RY(pi), the resultant statevector is:

[ 0+0j, 1+0j ]

We are obviously trying to rotate pi radians around the Y axis. The Y gate and the RY(pi) gate both do that. Intuition says, therefore, that the statevectors should be the same. And yet they’re not.

Could there by a bug in the Python framework? Absolutely. Unfortunately, multiple frameworks show this same result, and it’s highly unlikely they’re all broken. Therefore, there must be some difference in how these two gates are implemented.

Linear Algebra Matrices

--

--

The Modern Scientist
The Modern Scientist

Published in The Modern Scientist

The Modern Scientist aspires to connect builders & the curious to forward-thinking ideas. Either you are novice or expert, TMS will share contents that fulfils your ambition and interest. Write with us: shorturl.at/hjO39

Brian N. Siegelwax
Brian N. Siegelwax

Written by Brian N. Siegelwax

The least qualified person in quantum.

Responses (1)