javafxpert / grok-bloch Goto Github PK
View Code? Open in Web Editor NEWApplication that helps user understand the Bloch Sphere
Application that helps user understand the Bloch Sphere
Initialize a qubit to |0> and apply HZH
gate should be equivalent to applying the X
gate directly. The resulting state is |1> with phase=0. The current implementation carries a phase of 1.16
When I build this in grok bloch, I get this state vector, with only one value for phase:
But circuit composer gives me a phase value for each state, and the statevector is different:
The state vectors are in different formats, so let's convert to confirm they're different:
sqrt(0.5) * e^(i * 3pi/2) = 0-0.707i
the grok bloch statevector
[ |0⟩, |1⟩ ] = [ 0.707+0i, 0-0.707i ]
the circuit composer statevector
[ |0⟩, |1⟩ ] = [ 0-0.707i, -0.707+0i ]
And let's compare the phases
grok bloch phases
[ arg(0.707+0i), arg(0-0.707i) ] = [ 0, -π/2 ] = [ 0, 3π/2 ]
circuit composer phases
[ arg(0-0.707i), arg(-0.707+0i) ] = [ -π/2, π ]
Which is the correct way to grok the bloch?
How many phases does a qubit have?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.