Example illustraing Quantum programming

Click For Summary

Discussion Overview

The discussion centers around quantum programming, specifically seeking examples and suggestions for coding practices that illustrate quantum computing principles. Participants explore different approaches, including educational games and practical coding examples in Java and Python.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification

Main Points Raised

  • One participant expresses interest in creating a simple code to illustrate quantum computing concepts, such as a quantum dice for generating random results.
  • Another participant shares their experience with a quantum tic tac toe game that demonstrates quantum entanglement, describing its mechanics and visual effects.
  • A participant points out that the Wikipedia example of quantum tic tac toe does not include coding details.
  • Another participant provides a link to a Wikipedia page discussing quantum programming SDKs based on simulators, suggesting it may be helpful.
  • One participant distinguishes between code that illustrates quantum principles and code intended for actual quantum computers, noting the differences in complexity and dependence on hardware.

Areas of Agreement / Disagreement

Participants have differing views on the type of code being sought, with some focusing on illustrative examples while others emphasize the practical applications for quantum computers. The discussion remains unresolved regarding the best approach to take.

Contextual Notes

The discussion highlights the immature state of quantum programming and the varying levels of complexity involved in coding for educational versus practical quantum computing applications.

romerol
Messages
3
Reaction score
0
TL;DR
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   Reactions: 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   Reactions: pbuk

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 14 ·
Replies
14
Views
5K
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K