Ask HN: Resources to start learning about quantum computing?
Hi there,
I'm an experienced software engineer (+15 years dev experience, MsC in Computer Science) and quantum computing is the first thing in my experience that is being hard to grasp/understand. I'd love to fix that ;)
What resources would you recommend to start learning about quantum computing?
Ideally resources that touch both the theoretical base and evolve to more practical usages.
54 comments
[ 4.6 ms ] story [ 115 ms ] thread- Nielsen and Chuang, Quantum computation and information: mmrc.amss.cas.cn/tlb/201702/W020170224608149940643.pdf
While you are reading and solving the above book, I strongly recommend reading:
- "Quantum computing since Democritus" by Scott Aaronson, one of the researchers on quantum computation: https://www.scottaaronson.com/democritus/
This book will give you a "flavour" of where the power of quantum computation might be coming from, and the whole host of theoretical issues that surround this domain.
What I _highly_ recommend is practicing problem-solving using these resources:
(1) Microsoft quantum katas: https://github.com/microsoft/QuantumKatas
(2) Codeforces Q# coding contest: https://codeforces.com/msqs2018
Actually programming the circuits in Q# will give you a sense of stuff that's swept under the rug when reading textbooks: initialization of qubit states, a good sense of what "qubits cannot be copied" means, etc.
At this point, one ought to have an understand of quantum computation and our current understanding of its power (in particular, the relationship that we don't know how to separate BPP and BQP), how to implement the "common" quantum algorithms in a programming language, and a vivid sense of the "quantumness" of these algorithms.
For reference, I speak from experience: (1) My solutions to the quantum katas: https://github.com/bollu/quantum-course-exercises. (2) My scattered QC notes: https://github.com/bollu/notes/blob/master/quantum-computati...
(One can find a full pdf of quantum computing since Democritus relatively easily on the internet if one so chooses.)
https://metacpan.org/pod/Quantum::Superpositions
(The original author, Damian Conway, is a university CS professor.)
[0] https://qiskit.org/learn/ [1] https://unitary.fund/posts/high_school_resources.html [2] https://quantum.country/ [3] http://qworld.lu.lv/
I truly believe anyone is capable of grasping QC. Minimal physics required. Math no higher than linear algebra. Q# Quantum Katas are ideal for beginners. Mariia Mykhailova is a terrific instructor. And you can scale up to arbitrary numbers of (simulated) Qubits on Azure Quantum when you are ready to solve real world optimizations / simulations ;)
Just want to link up another resource currently ongoing: Qiskit Global Summer School. Currently 2000+ students enrolled and materials are identical to bootcamp given to IBM Quantum Interns
https://qiskit.org/events/summer-school/
Best of Luck ;)
What types of problems are quantum computers anticipated to solve? I've only heard about how they are able to break certain cryptographical algorithms that were designed long before quantum was even a thought.
I'm sure that once the electrical engineering side of things is in place and commercial machines are being manufactured (custom or model based design), it will become a new consulting domain for software engineers to work in.
https://aws.amazon.com/braket/faqs/
In reality, they can't do this until they have a working quantum computer of an interesting size.
For now, it's limited to toy-size QCs, which can be simulated faster and cheaper using an ordinary computer. So if they are on a cloud server, it's more for curiosity value only. They aren't actually useful.
There's a lot of buzz and hope and money going into it, but nobody knows with certainty if it's even possible to build one of a useful size.
The "quantum supremacy" claim which happened already was genuine and deserves accolades, but it turns out only to be useful on a very contrived kind of problem. The clever part, in a way, was figuring out a suitably contrived problem, to show that quantum supremacy is technically possible without resulting in a useful quantum computer, and it doesn't run any of the standard quantum circuits.
Just thought I'd mention, quantum computer design started in the early 1980s, and many of the theoretical results came through quite a while ago.
What's happening now is the investment and funding landscape has changed considerably.
There are different implementations of "quantum computing" which are appropriate for different types of problems. Google and Wikipedia will teach you about them, for example quantum annealing vs. universal quantum computing.
As for what types of problems: D-Wave's quantum computers (and adiabatic quantum computers in general) are best suited for optimization problems. Some examples are scheduling, graph coloring, and other NP-hard problems.
AFAIK quantum computing, as a whole, is very far from breaking any kind of interesting crypto.
[1] https://news.ycombinator.com/item?id=23918899
Quantum Computing for Computer Scientists by Noson S. Yanofsky and Mirco A. Mannucci
https://www.cambridge.org/core/books/quantum-computing-for-c...
They use spaced repetition to help you interiorize the concepts and give a good theorical basis to understand what quantum computing is about.
https://quantum.country
There are two reasons I like it.
There is no mumbo jumbo about polarising filters and "look how mysterious" it is. No. They concentrate on very simple linear algebra and work with it.
Second, they make a convincing argument that when you memorise a bit of material, it makes it intuitive. So they incorporate spaced repetition to continually test you (by email) so that the material gets into your long-term memory.
https://www.scottaaronson.com/barbados-2016.pdf
[1] https://ocw.mit.edu/courses/physics/8-04-quantum-physics-i-s...
[2] https://ocw.mit.edu/courses/physics/8-04-quantum-physics-i-s...
[3] https://ocw.mit.edu/courses/physics/8-05-quantum-physics-ii-...
[4] https://ocw.mit.edu/courses/physics/8-06-quantum-physics-iii...
[4] https://ocw.mit.edu/courses/physics/8-06-quantum-physics-iii...
But for me what really helped was Quantum Computing Without the Physics by Nannicini. Aaronson is not formal enough or really a textbook to teach and explain quantum algos like Simons (a good first algo) or Grover. It is an amazingly fun book though.
https://arxiv.org/abs/1708.03684
Nielsen and Chuang is the standard textbook but was not useful to me sadly. I wouldn’t recommend it to a beginner outside the framework of a course.
We have compiled learning resources [2], organize workshops and hackathons (i.e. we are behind the Quantum track at FOSDEM [3]) and even offer mentorships [4] for people that have some QC knowledge and are interested in entering the field of quantum SW development.
Originally the effort started as surveying the current state of open source software in QC [1], but shortly afterwards we realized that the field could benefit (similar as AI has), among other things, from more people with SWE background joining and helping the ecosystem grow, making the individual pieces of the QC stack more robust and interoperable, but also completely building parts that are currently missing.
In that spirit, more recently we are trying to organize efforts to help the open source quantum ecosystem by building various projects where people with good SWE background could be very helpful.
Write me a short info about you at `tomas at qosf.org` with "[HN]" prefix if interested to volunteer some of your time!
We're hoping to add couple of people into the team, and looking for people with a different backgrounds (Python is the language of the science world in QC, but we have use for everything ranging from devops, frontend to backend skillsets).
[0] https://qosf.org
[1] https://journals.plos.org/plosone/article?id=10.1371/journal...
[2] https://qosf.org/learn_quantum/
[3] https://fosdem.org/2020/schedule/track/quantum_computing/
[4] https://qosf.org/qc_mentorship/
We've recently added an IDE [2], we've got tutorials [3] and YouTube videos [4] to guide you through the learning process. Additionally, we've recently released a hybrid solver service [5], which supports up to 10k fully-connected variables.
* The Leap service is available in 37 countries. We just launched in India and Australia this week.
[1] https://www.dwavesys.com/take-leap
[2] https://support.dwavesys.com/hc/en-us/sections/360007452933-...
[3] https://www.dwavesys.com/resources/tutorials
[4] https://www.youtube.com/channel/UC6_etbfDnWMxAuYj9qD1qmA
[5] https://www.dwavesys.com/sites/default/files/14-1039A-A_D-Wa...
I did a research project on the competitive landscape on QC few years ago and at least then it was a huge topic.
What are your thoughts?
To directly answer your question, I'm most impressed by [3]: materials with a specific structure called the Shastry-Sutherland lattice exhibit a quantized response to an external magnetic field. This is a place where materials clearly demonstrate a quantum effect (itself a demonstration that quantum mechanics are necessary to describe the universe) -- and when we use our computer to simulate it, that effect is clearly visible.
I do think of physics experiments as real-world problems, but some of our customers are doing really neat stuff that's much closer to a lay-perspective of what "real-world" means. For example, Groovenauts and Mitsubishi Estate collaborated [4] to optimize the routing of waste-collection trucks. Another one, a collaboration [5] with Menten AI, involving protein design (admittedly, a bit over my head) made use of our hybrid sampling service and they're now doing wet-lab experiments. We've collected [6] quite a few of these applications, and I'm barely familiar with a few of them.
[1] https://phys.org/news/2018-08-d-wave-large-scale-quantum-sim...
[2] https://arxiv.org/abs/2003.01019
[3] https://science.sciencemag.org/content/361/6398/162
[4] https://www.dwavesys.com/sites/default/files/Dwave_Groovenau...
[5] https://www.dwavesys.com/sites/default/files/Dwave_Menten%20...
[6] https://www.dwavesys.com/applications
I like her because she writes code for a living AND has worked at quantum computing startups, and went to postgrad for quantum, so she can go really deep on both areas and their intersection.
She's also on Twitter https://twitter.com/amarchenkova
Then, you should probably take a class in the basics of quantum physics which will lay the foundation for you to understand quantum computing.
https://www.youtube.com/watch?v=KKwjeJzKezw
His quote: "90% of the understanding of the quantum circuit model is achieved by reviewing three purely 'classical' topics: classical Boolean circuits; reversible classical circuits; and randomized computation"
How I learned:
I started out like you, in possession of an undergraduate education in computer science. I began reading Quantum Computer Science: An Introduction[0] by N. David Mermin. This is a very good textbook, but I absolutely could not skim it. I had to ensure I understood every single line before moving onto the next. I had the impression I wasn't learning very quickly, when in fact (due to the textbook's density) I was taking in a huge amount of information.
After a few weeks with the Mermin textbook, I bought Quantum Computing for Computer Scientists[1] by Yanofsky & Mannucci. This is a much softer introduction than Mermin, almost too soft: I skipped the first few chapters on linear algebra and complex numbers. However, in combination with the Mermin textbook, I acquired a good understanding of quantum computing basics. It was at this point I reached my own personal threshold for feeling I "understood" quantum computing.
People often recommend Quantum Computation and Quantum Information by Nielsen & Chuang (also called "Mike & Ike") for beginners. I believe this is not good advice. Had I tried to learn from that textbook, I would have failed. However, it is an excellent textbook after you already understand the basics. Anecdotally, I knew two people who tried to learn quantum computing at the same time as me: one used Mike & Ike, and the other used a book called Quantum Computing: A Gentle Introduction. Neither of those people understand quantum computing today.
How I wish I had learned:
My experience learning quantum computing required a huge amount of mental effort, and in the end what I learned wasn't actually complicated! So, I created a lecture called Quantum Computing for Computer Scientists[2] which is the lecture I wish I'd had access to before trying to read any textbooks. The lecture is popular and well-received, and I think it covers all the stuff that's really conceptually tricky; once you're over those conceptual hurdles, you can apply your regular computer science skills to learn everything else about quantum computing you need (how specific algorithms work, etc.) Thus my "hindsight" study guide is as follows:
1. Watch the lecture I created.
2. Watch Professor Umesh Vazirani's lectures on quantum computing; they flesh out my lecture and he is a tremendously effective explainer of concepts (these are scattered around YouTube but you can find a full playlist at [3])
3. Concurrently, work through the first few chapters of either the Mermin or Yanofsky textbooks
4. After you feel you understand the quantum computing basics, pick topics which interest you from the Nielsen & Chuang textbook
5. Stick around quantumcomputing.stackexchange, reading questions & answers, asking your own, and maybe eventually answering your own!
Good luck!
P.S. I've also heard good things about the Quantum Katas: https://docs.microsoft.com/en-us/quantum/tutorials/intro-to-...
[0] https://www.amazon.com/Quantum-Computer-Science-David-Mermin...
[1] https://www.amazon.com/Quantum-Computing-Computer-Scientists...
[2] https://youtu....