Hacker News new | ask | show | jobs
by jeffwass 5183 days ago
If you're interested in quantum computation, here's a java simulation I wrote several years ago while a physics grad student. It demonstrates both mathematically and visually the relationship between a qubit spinor and the Bloch sphere, as well as various single-qubit operations. http://www.pha.jhu.edu/~jeffwass/squankum/index.html

As of now it only supports single-qubit operations (thus no entanglement), as I still needed to figure out an intuitive way to graphically represent two qubits. My idea was to show two Bloch spheres to represent the individual qubits, with a third hemisphere to represent the entanglement, but this is only partially implemented as I'd need to think of the right mathematical relationship for this.

I licensed it under the GPL as project 'Squankum' after being contacted by some software engineers at Computer Sciences Corporation who wanted to see the source code.

For entanglement, which is certainly more interesting than a single qubit, here's another (earlier) java simulation of mine that demonstrates two entangled spins, but it's primarily conceptual, and more removed from the mathematical details. http://www.pha.jhu.edu/~javalab/entangle/entangle.html

As I only created a github account this week, hopefully this is a chance to demo some of my code for the YC(S12) cycle.