Example illustraing Quantum programming

AI Thread Summary
Interest in quantum programming is growing, with discussions focusing on creating simple illustrative codes, such as a quantum dice for random results. Users have experimented with Java and Python, particularly within the Datamelt computation project for physics simulations. A notable example shared is a quantum tic-tac-toe game that visually represents quantum entanglement by allowing players to create entangled pairs through interaction. While the implementation deviated from the original concept, it successfully demonstrated the principles in a visually engaging manner. The conversation highlights the distinction between code that illustrates quantum principles and code designed for actual quantum computers, noting that the latter is still in a developmental stage and varies significantly based on hardware. Resources for further exploration include links to quantum programming SDKs and foundational concepts.
romerol
Messages
3
Reaction score
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
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
Thanks. This wikipedia example does not have coding
 
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
Thread 'Star maps using Blender'
Blender just recently dropped a new version, 4.5(with 5.0 on the horizon), and within it was a new feature for which I immediately thought of a use for. The new feature was a .csv importer for Geometry nodes. Geometry nodes are a method of modelling that uses a node tree to create 3D models which offers more flexibility than straight modeling does. The .csv importer node allows you to bring in a .csv file and use the data in it to control aspects of your model. So for example, if you...
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...

Similar threads

Back
Top