New Book from OReilly: Programming Quantum Computers

Click For Summary

Discussion Overview

The discussion revolves around the new book "Programming Quantum Computers" published by O'Reilly, focusing on the programming aspects of quantum computing rather than the underlying mathematics and physics. Participants explore the implications of quantum computing, its programming challenges, and the representation of quantum concepts through the book's cover art.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Conceptual clarification

Main Points Raised

  • Some participants note that the book uses circle notation for qubit states and includes a simulator called QCengine, with algorithm descriptions in JavaScript.
  • There is humor regarding the choice of cover art, with multiple comments about the absence of a cat and the representation of a musky octopus as a symbol of quantum mechanics.
  • Some participants express confusion about the content of the book, indicating that quantum computing may be a complex topic for many.
  • There are differing views on the future of quantum computing, with some suggesting it will be akin to early math coprocessors, while others emphasize its potential to solve problems much faster than classical computers.
  • Participants discuss the statistical nature of quantum computing results, noting that answers require multiple runs of the program to determine the most likely solution.
  • Concerns are raised about the validity and correctness of quantum programming, with some suggesting that confidence in programming may be the only evidence of correctness in certain cases.
  • There is mention of the limitations of quantum computers in solving specific problems that classical computers can handle effectively.

Areas of Agreement / Disagreement

Participants express a range of opinions on the implications and challenges of programming quantum computers, with no clear consensus on the future of quantum computing or the focus of the book. Disagreements exist regarding the nature of quantum programming and its comparison to classical computing.

Contextual Notes

Participants highlight the complexity of quantum computing and the potential for incorrect answers if programs are not properly designed. There is also mention of the need for correctness proofs for quantum programs, indicating a gap in current understanding.

Messages
15,639
Reaction score
10,439
OReilly published a new book, Programming Quantum Computers.

From my brief scan of it, the book looks pretty comprehensive. They use circle notation for the Qubit states and have a simulator (QCengine) to go along with the examples on github. The programming language for their algorithm descriptions is JavaScript.

The book focus is on programmers interested in the technology but not so much the math and physics behind it.

https://www.amazon.com/dp/1492039683/?tag=pfamazon01-20
 
  • Like
Likes   Reactions: Filip Larsen, hmmm27, QuantumQuest and 2 others
Technology news on Phys.org
Javascript should be a perfect fit since you never know what the variables are anyway. :oldwink:
 
  • Like
  • Haha
Likes   Reactions: Filip Larsen, QuantumQuest, DEvens and 2 others
I am shocked that the cover isn't a cat. Or a half-faded cat.
 
  • Like
  • Haha
Likes   Reactions: phinds, QuantumQuest, Tom.G and 3 others
Maybe it changes after you read it.
 
  • Like
  • Haha
Likes   Reactions: phinds, Klystron, sysprog and 3 others
Holy moley, I didn't understand anything in that preview outside the intro pages lol. It's going to be a whole new world when quantum computing goes commercial.
 
Maybe not. I think itll be like using a math coprocessor like in the early day of the micro.
 
jedishrfu said:
Maybe not. I think itll be like using a math coprocessor like in the early day of the micro.
Blast from the past. That made me remember the Floating Point Systems add-on box we used in the late 70s. For the benefit of younger members, it was an external CPU that could do floating point calculations and array processing in the days when affordable CPUs did floating point with software.

Compare it to today's GPUs. Programming a GPU also sounds very alien.
 
  • Like
Likes   Reactions: jedishrfu
Vanadium 50 said:
I am shocked that the cover isn't a cat. Or a half-faded cat.
Extract; page 271.
The animal on the cover of Programming Quantum Computers is the musky octopus (Eledone moschata), a sea creature found at depths of up to ¼ mile in the Mediterranean Sea and the coastal waters of western Europe.
...
While the musky octopus’s current conservation status is designated as of Least Concern, many of the animals on O’Reilly covers are endangered; all of them are important to the world.
The cover illustration is by Karen Montgomery, based on a black and white engraving from Dover’s Animals.
 
  • Like
Likes   Reactions: anorlunda
  • #10
Schrödinger's octopus :wink:
 
  • Haha
Likes   Reactions: phinds
  • #11
The octopus makes sense to represent quantum mechanics because once it creates its inky cloud as a predator approaches then you can’t know where it is exactly anymore.
 
  • Like
Likes   Reactions: phinds and anorlunda
  • #12
OK, Qbits driven machines that can solve problems that can take hundreds of years to solve and do it in ~2 weeks. Why isn't that the focus - that "is" the topic, not the cover.
 
  • #13
heff001 said:
OK, Qbits driven machines that can solve problems that can take hundreds of years to solve and do it in ~2 weeks. Why isn't that the focus - that "is" the topic, not the cover.
They have the potential to do that, but first they must be correctly programmed. They are also capable of arriving at incorrect answers in record time if incorrectly programmed.

Quantum computing is not the topic, programming them is.
 
  • Like
Likes   Reactions: heff001
  • #14
One thing folks forget here is that the answer doesn’t just pop out of the QC after one run. It’s a statistical process where the program is rerun many times maybe hundreds of times and the answer with the most number of matches wins.

We can check the answer classically for some problems rather quickly but finding it classically via an exhaustive search would take forever. The traveling salesman problem is a good example of one such problem.
 
Last edited:
  • #15
By "check" you mean check that the solution is valid, not that the solution is optimal, right?
 
  • #17
jedishrfu said:
We can check the answer classically for some problems rather quickly
That's true, but the operative word is *some*. There will be other problems where we have no practical way to check the answers because checking by conventional computers won't work. If that is the case, then confidence in the programming may be the only evidence we have that the answers are correct.

We have not yet experienced quantum bugs.

That sounds like a ripe field for computer scientists. Correctness proofs for quantum programs.
 
  • Like
Likes   Reactions: jedishrfu
  • #18
Also there are many problems suited for a classical computer but could never be programmed on a quantum computer at least from what I've seen so far.

This is a lot like the parallel computing paradox where there are some problems that can't be parallelized but we keep searching for ways to do it.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
1K
Replies
8
Views
3K
Replies
8
Views
6K
Replies
29
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 0 ·
Replies
0
Views
2K
Replies
7
Views
5K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
1
Views
3K