Strilanc / Quirk

A drag-and-drop quantum circuit simulator that runs in your browser. A toy for exploring and understanding small quantum circuits.
http://algassert.com/quirk
Apache License 2.0
922 stars 157 forks source link

Bloch sphere display #482

Closed dheerajpatankar closed 3 years ago

dheerajpatankar commented 3 years ago

I was trying few gates. Not sure if it's a real issue however Bloch sphere representation of both operations below is the same? Am I missing anything?

op1: X|0> op2: Y|0>

Further if I modify the operations by adding another H gate for both operations, they also show same Bloch sphere representation.

Strilanc commented 3 years ago

That's the correct behavior. The two states are equal up to global phase.

dheerajpatankar commented 3 years ago

Thanks for the confirmation. Could you guide on how to show complex part on the bloch sphere as: X|0>= |1> and Y|0> = i|1> I tried searching any good article about this, appreciate any information.

Strilanc commented 3 years ago

The bloch sphere doesn't show that information, by design.