What is a quantum computer? Explained with a simple example.
Posted: October 3, 2022 at 1:53 am
by YK Sugi
Hi everyone!
The other day, I visited D-Wave Systems in Vancouver, Canada. Its a company that makes cutting-edge quantum computers.
I got to learn a lot about quantum computers there, so Id like to share some of what I learned there with you in this article.
The goal of this article is to give you an accurate intuition of what a quantum computer is using a simple example.
This article will not require you to have prior knowledge of either quantum physics or computer science to be able to understand it.
Okay, lets get started.
Edit (Feb 26, 2019): I recently published a video about the same topic on my YouTube channel. I would recommend watching it (click here) before or after reading this article because I have added some additional, more nuanced arguments in the video.
Here is a one-sentence summary of what a quantum computer is:
There is a lot to unpack in this sentence, so let me walk you through what it is exactly using a simple example.
To explain what a quantum computer is, Ill need to first explain a little bit about regular (non-quantum) computers.
Now, a regular computer stores information in a series of 0s and 1s.
Different kinds of information, such as numbers, text, and images can be represented this way.
Each unit in this series of 0s and 1s is called a bit. So, a bit can be set to either 0 or 1.
A quantum computer does not use bits to store information. Instead, it uses something called qubits.
Each qubit can not only be set to 1 or 0, but it can also be set to 1 and 0. But what does that mean exactly?
Let me explain this with a simple example. This is going to be a somewhat artificial example. But its still going to be helpful in understanding how quantum computers work.
Now, suppose youre running a travel agency, and you need to move a group of people from one location to another.
To keep this simple, lets say that you need to move only 3 people for now Alice, Becky, and Chris.
And suppose that you have booked 2 taxis for this purpose, and you want to figure out who gets into which taxi.
Also, suppose here that youre given information about whos friends with who, and whos enemies with who.
Here, lets say that:
And suppose that your goal here is to divide this group of 3 people into the two taxis to achieve the following two objectives:
Okay, so this is the basic premise of this problem. Lets first think about how we would solve this problem using a regular computer.
To solve this problem with a regular, non-quantum computer, youll need first to figure out how to store the relevant information with bits.
Lets label the two taxis Taxi #1 and Taxi #0.
Then, you can represent who gets into which car with 3 bits.
For example, we can set the three bits to 0, 0, and 1 to represent:
Since there are two choices for each person, there are 2*2*2 = 8 ways to divide this group of people into two cars.
Heres a list of all possible configurations:
A | B | C0 | 0 | 00 | 0 | 10 | 1 | 00 | 1 | 11 | 0 | 01 | 0 | 11 | 1 | 01 | 1 | 1
Using 3 bits, you can represent any one of these combinations.
Now, using a regular computer, how would we determine which configuration is the best solution?
To do this, lets define how we can compute the score for each configuration. This score will represent the extent to which each solution achieves the two objectives I mentioned earlier:
Lets simply define our score as follows:
(the score of a given configuration) = (# friend pairs sharing the same car) - (# enemy pairs sharing the same car)
For example, suppose that Alice, Becky, and Chris all get into Taxi #1. With three bits, this can be expressed as 111.
In this case, there is only one friend pair sharing the same car Alice and Becky.
However, there are two enemy pairs sharing the same car Alice and Chris, and Becky and Chris.
So, the total score of this configuration is 1-2 = -1.
With all of this setup, we can finally go about solving this problem.
With a regular computer, to find the best configuration, youll need to essentially go through all configurations to see which one achieves the highest score.
So, you can think about constructing a table like this:
A | B | C | Score0 | 0 | 0 | -10 | 0 | 1 | 1 <- one of the best solutions0 | 1 | 0 | -10 | 1 | 1 | -11 | 0 | 0 | -11 | 0 | 1 | -11 | 1 | 0 | 1 <- the other best solution1 | 1 | 1 | -1
As you can see, there are two correct solutions here 001 and 110, both achieving the score of 1.
This problem is fairly simple. It quickly becomes too difficult to solve with a regular computer as we increase the number of people in this problem.
We saw that with 3 people, we need to go through 8 possible configurations.
What if there are 4 people? In that case, well need to go through 2*2*2*2 = 16 configurations.
With n people, well need to go through (2 to the power of n) configurations to find the best solution.
So, if there are 100 people, well need to go through:
This is simply impossible to solve with a regular computer.
How would we go about solving this problem with a quantum computer?
To think about that, lets go back to the case of dividing 3 people into two taxis.
As we saw earlier, there were 8 possible solutions to this problem:
A | B | C0 | 0 | 00 | 0 | 10 | 1 | 00 | 1 | 11 | 0 | 01 | 0 | 11 | 1 | 01 | 1 | 1
With a regular computer, using 3 bits, we were able to represent only one of these solutions at a time for example, 001.
However, with a quantum computer, using 3 qubits, we can represent all 8 of these solutions at the same time.
There are debates as to what it means exactly, but heres the way I think about it.
First, examine the first qubit out of these 3 qubits. When you set it to both 0 and 1, its sort of like creating two parallel worlds. (Yes, its strange, but just follow along here.)
In one of those parallel worlds, the qubit is set to 0. In the other one, its set to 1.
Now, what if you set the second qubit to 0 and 1, too? Then, its sort of like creating 4 parallel worlds.
In the first world, the two qubits are set to 00. In the second one, they are 01. In the third one, they are 10. In the fourth one, they are 11.
Similarly, if you set all three qubits to both 0 and 1, youd be creating 8 parallel worlds 000, 001, 010, 011, 100, 101, 110, and 111.
This is a strange way to think, but it is one of the correct ways to interpret how the qubits behave in the real world.
Now, when you apply some sort of computation on these three qubits, you are actually applying the same computation in all of those 8 parallel worlds at the same time.
So, instead of going through each of those potential solutions sequentially, we can compute the scores of all solutions at the same time.
With this particular example, in theory, your quantum computer would be able to find one of the best solutions in a few milliseconds. Again, thats 001 or 110 as we saw earlier:
A | B | C | Score0 | 0 | 0 | -10 | 0 | 1 | 1 <- one of the best solutions0 | 1 | 0 | -10 | 1 | 1 | -11 | 0 | 0 | -11 | 0 | 1 | -11 | 1 | 0 | 1 <- the other best solution1 | 1 | 1 | -1
In reality, to solve this problem, you would need to give your quantum computer two things:
Given these two things, your quantum computer will spit out one of the best solutions in a few milliseconds. In this case, thats 001 or 110 with a score of 1.
Now, in theory, a quantum computer is able to find one of the best solutions every time it runs.
However, in reality, there are errors when running a quantum computer. So, instead of finding the best solution, it might find the second-best solution, the third best solution, and so on.
These errors become more prominent as the problem becomes more and more complex.
So, in practice, you will probably want to run the same operation on a quantum computer dozens of times or hundreds of times. Then pick the best result out of the many results you get.
Even with the errors I mentioned, the quantum computer does not have the same scaling issue a regular computer suffers from.
When there are 3 people we need to divide into two cars, the number of operations we need to perform on a quantum computer is 1. This is because a quantum computer computes the score of all configurations at the same time.
When there are 4 people, the number of operations is still 1.
When there are 100 people, the number of operations is still 1. With a single operation, a quantum computer computes the scores of all 2 ~= 10 = one million million million million million configurations at the same time.
As I mentioned earlier, in practice, its probably best to run your quantum computer dozens of times or hundreds of times and pick the best result out of the many results you get.
However, its still much better than running the same problem on a regular computer and having to repeat the same type of computation one million million million million million times.
Special thanks to everyone at D-Wave Systems for patiently explaining all of this to me.
D-Wave recently launched a cloud environment for interacting with a quantum computer.
If youre a developer and would like actually to try using a quantum computer, its probably the easiest way to do so.
Its called Leap, and its at https://cloud.dwavesys.com/leap. You can use it for free to solve thousands of problems, and they also have easy-to-follow tutorials on getting started with quantum computers once you sign up.
Footnote:
See original here:
What is a quantum computer? Explained with a simple example.
- Why Move Fast and Break Things Doesn't Work Anymore - Harvard Business Review [Last Updated On: December 11th, 2019] [Originally Added On: December 11th, 2019]
- Security leaders fear that quantum computing developments will outpace security technologies - Continuity Central [Last Updated On: December 11th, 2019] [Originally Added On: December 11th, 2019]
- Inside the weird, wild, and wondrous world of quantum video games - Digital Trends [Last Updated On: December 11th, 2019] [Originally Added On: December 11th, 2019]
- This Week in Tech: What on Earth Is a Quantum Computer? - The New York Times [Last Updated On: December 11th, 2019] [Originally Added On: December 11th, 2019]
- Charles Hoskinson Predicts Economic Collapse, Rise of Quantum Computing, Space Travel and Cryptocurrency in the 2020s - The Daily Hodl [Last Updated On: January 12th, 2020] [Originally Added On: January 12th, 2020]
- Jeffrey Epstein scandal: MIT professor put on leave, he 'failed to inform' college that sex offender made donations - CNBC [Last Updated On: January 12th, 2020] [Originally Added On: January 12th, 2020]
- Were approaching the limits of computer power we need new programmers now - The Guardian [Last Updated On: January 12th, 2020] [Originally Added On: January 12th, 2020]
- Is Quantum Technology The Future Of The World? - The Coin Republic [Last Updated On: January 12th, 2020] [Originally Added On: January 12th, 2020]
- Google and IBM square off in Schrodingers catfight over quantum supremacy - The Register [Last Updated On: January 12th, 2020] [Originally Added On: January 12th, 2020]
- CES 2020: IBM and Daimler teaming up for a quantum leap in battery tech - CNET [Last Updated On: January 12th, 2020] [Originally Added On: January 12th, 2020]
- 5G, AI and Quantum Computing: Who Knows Where It Will All Lead? - Planet Vending [Last Updated On: January 27th, 2020] [Originally Added On: January 27th, 2020]
- University of Sheffield launches Quantum centre to develop the technologies of tomorrow - Quantaneo, the Quantum Computing Source [Last Updated On: January 27th, 2020] [Originally Added On: January 27th, 2020]
- Quantum networking projected to be $5.5 billion market in 2025 - TechRepublic [Last Updated On: January 27th, 2020] [Originally Added On: January 27th, 2020]
- Delta Partners with IBM to Explore Quantum Computing - Database Trends and Applications [Last Updated On: January 27th, 2020] [Originally Added On: January 27th, 2020]
- The End Of The Digital Revolution Is Coming: Here's What's Next - Innovation Excellence [Last Updated On: January 27th, 2020] [Originally Added On: January 27th, 2020]
- What Is Quantum Computing, And How Can It Unlock Value For Businesses? - Computer Business Review [Last Updated On: January 27th, 2020] [Originally Added On: January 27th, 2020]
- TensorFlow gets its quantum of solace, lid lifted on 'all-seeing crime-detecting' AI upstart, and more - The Register [Last Updated On: March 17th, 2020] [Originally Added On: March 17th, 2020]
- Career navigation Be at the core or be at the edge - The Financial Express BD [Last Updated On: March 19th, 2020] [Originally Added On: March 19th, 2020]
- Work from home: Improve your security with MFA - We Live Security [Last Updated On: March 19th, 2020] [Originally Added On: March 19th, 2020]
- Quantum Computing for Everyone - The Startup - Medium [Last Updated On: March 19th, 2020] [Originally Added On: March 19th, 2020]
- Quantum computing is right around the corner, but cooling is a problem. What are the options? - Diginomica [Last Updated On: March 19th, 2020] [Originally Added On: March 19th, 2020]
- Quantum Computing: Will It Actually Produce Jobs? - Dice Insights [Last Updated On: March 19th, 2020] [Originally Added On: March 19th, 2020]
- Disrupt The Datacenter With Orchestration - The Next Platform [Last Updated On: April 2nd, 2020] [Originally Added On: April 2nd, 2020]
- Q-CTRL to Host Live Demos of 'Quantum Control' Tools - Quantaneo, the Quantum Computing Source [Last Updated On: April 2nd, 2020] [Originally Added On: April 2nd, 2020]
- We're Getting Closer to the Quantum Internet, But What Is It? - HowStuffWorks [Last Updated On: April 2nd, 2020] [Originally Added On: April 2nd, 2020]
- D-Wave makes its quantum computers free to anyone working on the coronavirus crisis - VentureBeat [Last Updated On: April 2nd, 2020] [Originally Added On: April 2nd, 2020]
- Making Sense of the Science and Philosophy of Devs - The Ringer [Last Updated On: April 16th, 2020] [Originally Added On: April 16th, 2020]
- Alex Garland on 'Devs,' free will and quantum computing - Engadget [Last Updated On: April 16th, 2020] [Originally Added On: April 16th, 2020]
- COVID-19: Quantum computing could someday find cures for coronaviruses and other diseases - TechRepublic [Last Updated On: April 16th, 2020] [Originally Added On: April 16th, 2020]
- Calling On AI And Quantum Computing To Fight The Coronavirus - Forbes [Last Updated On: April 16th, 2020] [Originally Added On: April 16th, 2020]
- Quantum computer chips demonstrated at the highest temperatures ever - New Scientist News [Last Updated On: April 16th, 2020] [Originally Added On: April 16th, 2020]
- New Princeton study takes superconductivity to the edge - Princeton University [Last Updated On: May 2nd, 2020] [Originally Added On: May 2nd, 2020]
- Devs: Here's the real science behind the quantum computing TV show - New Scientist News [Last Updated On: May 2nd, 2020] [Originally Added On: May 2nd, 2020]
- Online course trains students in the bizarre world of quantum computing - Livescience.com [Last Updated On: May 2nd, 2020] [Originally Added On: May 2nd, 2020]
- Between God and Science in the Surreal Silicon Valley of Devs - The Nation [Last Updated On: May 12th, 2020] [Originally Added On: May 12th, 2020]
- Kerry Emanuel, David Sabatini, and Peter Shor receive BBVA Frontiers of Knowledge awards - MIT News [Last Updated On: May 12th, 2020] [Originally Added On: May 12th, 2020]
- Recent Research Answers the Future of Quantum Machine Learning on COVID-19 - Analytics Insight [Last Updated On: May 12th, 2020] [Originally Added On: May 12th, 2020]
- David Graves to Head New Research at PPPL for Plasma Applications in Industry and Quantum Information Science - HPCwire [Last Updated On: May 12th, 2020] [Originally Added On: May 12th, 2020]
- IonQ CEO Peter Chapman on how quantum computing will change the future of AI - VentureBeat [Last Updated On: May 12th, 2020] [Originally Added On: May 12th, 2020]
- VTT to acquire Finland's first quantum computer seeking to bolster Finland's and Europe's competitiveness - Quantaneo, the Quantum Computing Source [Last Updated On: May 12th, 2020] [Originally Added On: May 12th, 2020]
- Light, fantastic: the path ahead for faster, smaller computer processors - News - The University of Sydney [Last Updated On: May 17th, 2020] [Originally Added On: May 17th, 2020]
- Registration Open for Inaugural IEEE International Conference on Quantum Computing and Engineering - HPCwire [Last Updated On: May 17th, 2020] [Originally Added On: May 17th, 2020]
- Video: The Future of Quantum Computing with IBM - insideHPC [Last Updated On: May 17th, 2020] [Originally Added On: May 17th, 2020]
- Quantum computing analytics: Put this on your IT roadmap - TechRepublic [Last Updated On: May 17th, 2020] [Originally Added On: May 17th, 2020]
- Quantum computing will (eventually) help us discover vaccines in days - VentureBeat [Last Updated On: May 17th, 2020] [Originally Added On: May 17th, 2020]
- IBM Z mainframes revived by Red Hat, AI and security - TechTarget [Last Updated On: August 14th, 2020] [Originally Added On: August 14th, 2020]
- Toshiba Exits PC Business 35 Years of IBM Compatible PCs - Electropages [Last Updated On: August 14th, 2020] [Originally Added On: August 14th, 2020]
- 6 new degrees approved, including graduate degrees in biostatistics and quantum information science: News at IU - IU Newsroom [Last Updated On: August 14th, 2020] [Originally Added On: August 14th, 2020]
- The race to building a fully functional quantum stack - TechCrunch [Last Updated On: August 14th, 2020] [Originally Added On: August 14th, 2020]
- IEEE International Conference on Quantum Computing and Engineering (QCE20) Transitions to All-Virtual Event - PRNewswire [Last Updated On: August 14th, 2020] [Originally Added On: August 14th, 2020]
- Major quantum computational breakthrough is shaking up physics and maths - The Conversation UK [Last Updated On: August 14th, 2020] [Originally Added On: August 14th, 2020]
- Quantum mechanics is immune to the butterfly effect - The Economist [Last Updated On: August 14th, 2020] [Originally Added On: August 14th, 2020]
- Quantum Computing for the Next Generation of Computer Scientists and Researchers - Campus Technology [Last Updated On: August 14th, 2020] [Originally Added On: August 14th, 2020]
- Honeywell Wants To Show What Quantum Computing Can Do For The World - Forbes [Last Updated On: August 14th, 2020] [Originally Added On: August 14th, 2020]
- I confess, I'm scared of the next generation of supercomputers - TechRadar [Last Updated On: September 1st, 2020] [Originally Added On: September 1st, 2020]
- This Equation Calculates The Chances We Live In A Computer Simulation - Discover Magazine [Last Updated On: September 1st, 2020] [Originally Added On: September 1st, 2020]
- Q-NEXT collaboration awarded National Quantum Initiative funding - University of Wisconsin-Madison [Last Updated On: September 1st, 2020] [Originally Added On: September 1st, 2020]
- Quantum Cryptography Market Research Analysis Including Growth Factors, Types And Application By Regions From 2024 - Kentucky Journal 24 [Last Updated On: September 1st, 2020] [Originally Added On: September 1st, 2020]
- Researchers Found Another Impediment for Quantum Computers to Overcome - Dual Dove [Last Updated On: September 1st, 2020] [Originally Added On: September 1st, 2020]
- The future of artificial intelligence and quantum computing - Military & Aerospace Electronics [Last Updated On: September 1st, 2020] [Originally Added On: September 1st, 2020]
- Fermilab to lead $115 million National Quantum Information Science Research Center to build revolutionary quantum computer with Rigetti Computing,... [Last Updated On: September 1st, 2020] [Originally Added On: September 1st, 2020]
- Could Quantum Computing Progress Be Halted by Background Radiation? - Singularity Hub [Last Updated On: September 1st, 2020] [Originally Added On: September 1st, 2020]
- IBM plans to build a 1121 qubit system. What does this technology mean? - The Hindu [Last Updated On: September 26th, 2020] [Originally Added On: September 26th, 2020]
- Inaugural OSA Quantum 2.0 Conference Featured Talks on Emerging Technologies - Novus Light Technologies Today [Last Updated On: September 26th, 2020] [Originally Added On: September 26th, 2020]
- IBM, Alphabet and well-funded startups in the race for quantum supremacy - IT Brief Australia [Last Updated On: September 26th, 2020] [Originally Added On: September 26th, 2020]
- IBM Partners With HBCUs to Diversify Quantum Computing Workforce - Diverse: Issues in Higher Education [Last Updated On: September 26th, 2020] [Originally Added On: September 26th, 2020]
- Baidu offers quantum computing from the cloud - VentureBeat [Last Updated On: September 26th, 2020] [Originally Added On: September 26th, 2020]
- oneAPI Academic Center of Excellence Established at the Heidelberg University Computing Center (URZ) - HPCwire [Last Updated On: October 3rd, 2020] [Originally Added On: October 3rd, 2020]
- Berkeley Lab Technologies Honored With 7 R&D 100 Awards - Lawrence Berkeley National Laboratory [Last Updated On: October 3rd, 2020] [Originally Added On: October 3rd, 2020]
- Global QC Market Projected to Grow to More Than $800 million by 2024 - HPCwire [Last Updated On: October 3rd, 2020] [Originally Added On: October 3rd, 2020]
- Schrdingers Web offers a sneak peek at the quantum internet - Science News [Last Updated On: October 3rd, 2020] [Originally Added On: October 3rd, 2020]
- ESAs -Week: Digital Twin Earth, Quantum Computing and AI Take Center Stage - SciTechDaily [Last Updated On: October 3rd, 2020] [Originally Added On: October 3rd, 2020]
- A new claimant for "most powerful quantum computer" - Axios [Last Updated On: October 3rd, 2020] [Originally Added On: October 3rd, 2020]
- SC20 Invited Speakers Tackle Challenges for the Earth, Its Inhabitants, and Our Security Using 'More Than HPC' - HPCwire [Last Updated On: October 8th, 2020] [Originally Added On: October 8th, 2020]
- Google's Billion Dollar News, Commercial Quantum Computers And More In This Week's Top News - Analytics India Magazine [Last Updated On: October 8th, 2020] [Originally Added On: October 8th, 2020]
- Canadian quantum computing firms partner to spread the technology - IT World Canada [Last Updated On: October 8th, 2020] [Originally Added On: October 8th, 2020]
- Quantum computing: Photon startup lights up the future of computers and cryptography - ZDNet [Last Updated On: October 8th, 2020] [Originally Added On: October 8th, 2020]
- Race for quantum supremacy gathers momentum with several companies joining bandwagon, says GlobalData - Quantaneo, the Quantum Computing Source [Last Updated On: October 11th, 2020] [Originally Added On: October 11th, 2020]
- 4 Reasons Why Now Is the Best Time to Start With Quantum Computing - Medium [Last Updated On: October 11th, 2020] [Originally Added On: October 11th, 2020]
- What is Quantum Computing, and How does it Help Us? - Analytics Insight [Last Updated On: October 11th, 2020] [Originally Added On: October 11th, 2020]