Example illustraing Quantum programming

In summary, the conversation discussed the topic of quantum programming and how it can be used for physics simulations and statistical plots. The speaker expressed interest in creating a simple code to illustrate quantum computing and possibly visualize its principles, such as building a quantum dice. The other participant suggested a quantum tic tac toe game as an example of coding that teaches the notion of quantum entanglement. However, the speaker clarified that they were looking for code that could be used in a quantum computer, which is currently under development.
  • #1
romerol
3
0
TL;DR Summary
How to use Quantum programming example, preferably using Java and Python or Datamelt
I'm interested in quantum programming. So far I've managed to use Java and Python inside Datamelt computation project for physics simulations and for various statistical plots. Now I want to make a simple code that illustates quantum computing, and maybe even to visualize its principles (for example, building an quantum dice to generate a random result). Do you have any suggestion how to write such a code? Any example in python/java will be highly appreciated.
 
Technology news on Phys.org
  • #2
There’s a quantum tic tac toe game that teaches the notion of quantum entanglement.

I wrote a simple version where clicking on a square and dragging to another created an entangled pair. Instead of displaying an x or o they oscillated between the creating a blur until one square was selected and the other square took on the opposite value. It didn’t work exactly as described in the original game description but it sure looked cool.

https://en.m.wikipedia.org/wiki/Quantum_tic-tac-toe
 
  • Like
Likes FactChecker
  • #3
Thanks. This wikipedia example does not have coding
 
  • #5
Are you interested in code that illustrates the principles or in code that might actually be used in a quantum computer? The two are completely different. The example that @jedishrfu made is the former. Code that can actually be used in a quantum computer is completely different from normal code and is very dependent on the hardware and design of the computer. That entire subject is very immature and under development. @pbuk 's link addresses that code.
 
  • Like
Likes pbuk

Similar threads

Back
Top