New Book from OReilly: Programming Quantum Computers

AI Thread Summary
O'Reilly's new book, "Programming Quantum Computers," is designed for programmers interested in quantum computing without delving deeply into the underlying math and physics. It employs circle notation for qubit states and includes a simulator, QCengine, available on GitHub, with algorithm examples written in JavaScript. The discussion highlights the book's focus on programming quantum computers rather than the theoretical aspects of quantum mechanics. It emphasizes the importance of correct programming, as quantum computers can produce incorrect results if not properly coded. The statistical nature of quantum computing is noted, where multiple runs are necessary to determine the most likely correct answer. The conversation also touches on the challenges of verifying quantum solutions and the potential for quantum bugs, suggesting a need for correctness proofs in quantum programming. Comparisons are made to historical computing technologies, illustrating the evolution of programming paradigms.
Messages
15,470
Reaction score
10,181
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 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 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 phinds, QuantumQuest, Tom.G and 3 others
Maybe it changes after you read it.
 
  • Like
  • Haha
Likes 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 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 anorlunda
  • #10
Schrödinger's octopus :wink:
 
  • Haha
Likes 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 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 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 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.
 
Back
Top