What is Quantum Computing? Learn How it Works
Technology giants like Google, IBM, Amazon, and Microsoft are pouring resources into quantum computing. The goal of quantum computing is to create the next generation of computers and overcome classic computing limits.
Despite the progress, there are still unknown areas in this emerging field.
This article is an introduction to the basic concepts of quantum computing. You will learn what quantum computing is and how it works, as well as what sets a quantum device apart from a standard machine.
Quantum computing is a new generation of computers based on quantum mechanics, a physics branch that studies atomic and subatomic particles. These supercomputers perform computations at speeds and levels an ordinary computer cannot handle.
These are the main differences between a quantum device and a regular desktop:
Unlike a standard computer, its quantum counterpart can perform multiple operations simultaneously. These machines also store more states per unit of data and operate on more efficient algorithms.
Incredible processing power makes quantum computers capable of solving complex tasks and searching through unsorted data.
The adoption of more powerful computers benefits every industry. However, some areas already stand out as excellent opportunities for quantum computers to make a mark:
The key behind a quantum computers power is its ability to create and manipulate quantum bits, or qubits.
Here is the state of a qubit q0:
The likelihood of q0 being 0 when measured is a2. The probability of it being 1 when measured is b2. Due to the probabilistic nature, a qubit can be both 0 and 1 at the same time.
For a qubit q0 where a = 1 and b = 0, q0 is equivalent to a classical bit of 0. There is a 100% chance to get to a value of 0 when measured. If a = 0 and b = 1, then q0 is equivalent to a classical bit of 1. Thus, the classical binary bits of 0 and 1 are a subset of qubits.
Now, lets look at an empty circuit in the IBM Circuit Composer with a single qubit q0 (Figure 1).The Measurement probabilities graph shows that the q0 has 100% of being measured as 0. The Statevector graph shows the values of a and b, which correspond to the 0 and 1 computational basis states column, respectively.
In the case of Figure 1, a is equal to 1 and b to 0. So, q0 has a probability of 12 = 1 to be measured as 0.
A connected group of qubits provides more processing power than the same number of binary bits. The difference in processing is due to two quantum properties: superposition and entanglement.
When 0 < a and b < 1, the qubit is in a so-called superposition state. In this state, it is possible to jump to either 0 or 1 when measured. The probability of getting to 0 or 1 is defined by a2 and b2.
The Hadamard Gate is the basic gate inquantum computing. The Hadamard Gate moves the qubit from a non-superposition state of 0 or 1 into a superposition state. While in a superposition state, there is a 0.5 probability of it being measured as 0. There is also a 0.5 chance of the qubit ending up as 1.
Lets look at the effect of adding the Hadamard Gate (shown as a red H) on q0 where q0 is currently in a non-superposition state of 0 (Figure 2). After passing the Hadamard gate, the Measurement Probabilities graph shows that there is a 50% chance of getting a 0 or 1 when q0 is measured.
The Statevector graph shows the value of a and b, which are both square roots of 0.5 = 0.707. The probability for the qubit to be measured to 0 and 1 is 0.7072 = 0.5, so q0 is now in a superposition state.
When we measure a qubit in a superposition state, the qubit jumps to a non-superposition state. A measurement changes the qubit and forces it out of superposition to the state of either 0 or 1.
If a qubit is in a non-superposition state of 0 or 1, measuring it will not change anything. In that case, the qubit is already in a state of 100% being 0 or 1 when measured.
Let us add a measurement operation into the circuit (Figure 3). We measure q0 after the Hadamard gate and output the value of the measurement to bit 0 (a classical bit) in c1:
To see the results of the q0 measurement after the Hadamard Gate, we send the circuit to run on an actual quantum computer called ibmq_armonk. By default, there are 1024 runs of the quantum circuit. The result (Figure 4) shows that about 47.4% of the time, the q0 measurement is 0. The other 52.6% of times, it is measured as 1:
The second run (Figure 5) yields a different distribution of 0 and 1, but still close to the expected 50/50 split:
If two qubits are in an entanglement state, the measurement of one qubit instantly collapses the value of the other. The same effect happens even if the two entangled qubits are far apart.
Let us look at an example. A quantum operation that puts two untangled qubits into an entangled state is the CNOT gate. To demonstrate this, we first add another qubit q1, which is initialized to 0 by default. Before the CNOT gate, the two qubits are untangled, so q0 has a 0.5 chance of being 0 or 1 due to the Hadamard gate, while q1 is going to be 0. The Measurement Probabilities graph (Figure 6) shows that the probability of (q1, q0) being (0, 0) or (0, 1) is 50%:
Then we add the CNOT gate (shown as a blue dot and the plus sign) that takes the output of q0 from the Hadamard gate and q1 as inputs. The Measurement Probabilities graph now shows that there is a 50% chance of (q1, q0) being (0, 0) and 50% of being (1, 1) when measured (Figure 7):
There is zero chance of getting (0, 1) or (1, 0). Once we determine the value of one qubit, we know the others value because the two must be equal. In such a state, q0 and q1 are entangled.
Let us run this on an actual quantum computer and see what happens (Figure 8):
We are close to a 50/50 distribution between the 00 and 11 states. We also see unexpected occurrences of 01 and 10 due to the quantum computers high error rates. While error rates for classical computers are almost non-existent, high error rates are the main challenge of quantum computing.
The circuit shown in the Entanglement section is called the Bell Circuit. Even though it is basic, that circuit shows a few fundamental concepts and properties of quantum computing, namely qubits, superposition, entanglement, and measurements. The Bell Circuit is often cited as the Hello World program for quantum computing.
By now, you probably have many questions, such as:
There are no shortcuts to learning quantum computing. The field touches on complex topics spanning physics, mathematics, and computer science.
There is an abundance of good books and video tutorials that introduce the technology. These resources typically cover pre-requisite concepts like linear algebra, quantum mechanics, and binary computing.
In addition to books and tutorials, you can also learn a lot from code examples. Solutions to financial portfolio optimization and vehicle routing, for example, are great starting points for learning about quantum computing.
Quantum computers have the potential to exceed even the most advanced supercomputers. Quantum computing can lead to breakthroughs in science, medicine, machine learning, construction, transport, finances, and emergency services.
The promise is apparent, but the technology is still far from being applicable to real-life scenarios. New advances emerge every day, though, so expect quantum computing to cause significant disruptions in years to come.
Original post:
What is Quantum Computing? Learn How it Works
- Prediction: This Stock Will Be the Biggest Quantum Computing Winner of 2025 - The Motley Fool - January 19th, 2025 [January 19th, 2025]
- Schrdinger's Cat breakthrough could usher in the 'Holy Grail' of quantum computing, making them error-proof - Livescience.com - January 19th, 2025 [January 19th, 2025]
- Here's Some Reassuring News for Anyone Invested in Quantum Computing Stocks - The Motley Fool - January 19th, 2025 [January 19th, 2025]
- What is the future of quantum computing going to look like? - opinion - The Jerusalem Post - January 19th, 2025 [January 19th, 2025]
- What Is Quantum Computing? And Should You Be Investing In It? - Investor's Business Daily - January 19th, 2025 [January 19th, 2025]
- 2 Quantum Computing Stocks That Could Be a Once-in-a-Lifetime Opportunity - The Motley Fool - January 19th, 2025 [January 19th, 2025]
- Quantum Computing vs. Traditional AI: Which Tech Stocks Are Must-Haves in 2025? - The Motley Fool - January 19th, 2025 [January 19th, 2025]
- Should You Buy Quantum Computing Stock While It's Below $15? - The Motley Fool - January 19th, 2025 [January 19th, 2025]
- Why Quantum Computing Stock IonQ Surged Higher This Week - The Motley Fool - January 19th, 2025 [January 19th, 2025]
- Why Rigetti Computing, IonQ, D-Wave Quantum, and Quantum Computing Stocks All Exploded Higher on Wednesday - The Motley Fool - January 19th, 2025 [January 19th, 2025]
- Miami University and Cleveland Clinic announce partnership to advance education in quantum computing - The Miami Student - January 19th, 2025 [January 19th, 2025]
- Interested in Quantum Computing? You Might Want to Hear What Nvidia's CEO Just Said About It - The Motley Fool - January 19th, 2025 [January 19th, 2025]
- Quantum-computing stocks could be rich takeover targets. Heres what to know. - MarketWatch - January 19th, 2025 [January 19th, 2025]
- D-Wave and Quantum Computing Stocks Are on the Rise. What You Should Know. - Barron's - January 19th, 2025 [January 19th, 2025]
- Jim Cramer Eyes Quantum Computing Stocks Like Rigetti, Warns Against Super Micro Computer: 'They Are Trying So Hard To Walk It Up Now' - Yahoo Finance - January 19th, 2025 [January 19th, 2025]
- Here's Some Reassuring News for Anyone Invested in Quantum Computing Stocks - MSN - January 19th, 2025 [January 19th, 2025]
- Quantum Computing vs. Traditional AI: Which Tech Stocks Are Must-Haves in 2025? - MSN - January 19th, 2025 [January 19th, 2025]
- The Blockchain Industry Cant Afford Complacency in Preparing for Quantum Computing - Blockhead - January 19th, 2025 [January 19th, 2025]
- Rigetti and D-Wave: Top Analyst Chooses the Best Quantum Computing Stocks to Buy - TipRanks - January 19th, 2025 [January 19th, 2025]
- Quantum Computing: The Next Big Thing? Investors Are Watching Closely! - Jomfruland.net - January 19th, 2025 [January 19th, 2025]
- Quantum Computing in Healthcare Overview and Leading Players: - openPR - January 19th, 2025 [January 19th, 2025]
- Interested in quantum computing investments? Hear what Nvidia's CEO just said about it - USA TODAY - January 19th, 2025 [January 19th, 2025]
- Quantum Computing: The Next Big Thing or Just Hype? - Jomfruland.net - January 19th, 2025 [January 19th, 2025]
- Miami University and Cleveland Clinic Announce Partnership to Advance Education in Quantum Computing - Cleveland Clinic Newsroom - January 15th, 2025 [January 15th, 2025]
- Quantum computing stocks rebound after massive sell-off as industry exec says opportunity is 'real' - Yahoo Finance - January 15th, 2025 [January 15th, 2025]
- D-Wave Partners with Carahsoft to Provide Quantum Computing Solutions for the Public Sector - The Quantum Insider - January 15th, 2025 [January 15th, 2025]
- Miami University And Cleveland Clinic Announce Partnership to Launch Specialized Quantum Computing Degree Program - The Quantum Insider - January 15th, 2025 [January 15th, 2025]
- Quantum computing stocks soar after Nvidia and Meta CEOs tanked them - Yahoo Finance - January 15th, 2025 [January 15th, 2025]
- Are Quantum Computing Stocks a Buy in January? - The Motley Fool - January 15th, 2025 [January 15th, 2025]
- Jim Cramer Eyes Quantum Computing Stocks Like Rigetti, Warns Against Super Micro Computer: 'They Are Trying So Hard To Walk It Up Now' - Benzinga - January 15th, 2025 [January 15th, 2025]
- Quantum Computing Stocks Roar Back to Life. Time to Buy? - 24/7 Wall St. - January 15th, 2025 [January 15th, 2025]
- What's Going On With Quantum Computing Stock Today? - Benzinga - January 15th, 2025 [January 15th, 2025]
- D-Wave Partners with Carahsoft to Bring Quantum Computing to U.S. Government Agencies - StockTitan - January 15th, 2025 [January 15th, 2025]
- Quantum computing applications are 'real today': D-Wave CEO - Yahoo Finance - January 15th, 2025 [January 15th, 2025]
- Nvidia's Jensen Huang and Meta's Mark Zuckerberg Pour Cold Water on Quantum Computing Hype. Here's 1 Stock to Buy Anyway. - The Motley Fool - January 15th, 2025 [January 15th, 2025]
- Mark Zuckerberg joined Nvidia's CEO in doubting quantum computing and the stocks plunge again - Quartz - January 15th, 2025 [January 15th, 2025]
- Why Shares of Quantum Computing Stocks D-Wave Quantum, Quantum Computing, and Rigetti Computing Were Plunging Again Today - The Motley Fool - January 15th, 2025 [January 15th, 2025]
- Expert: The Nvidia-Driven Selloff in Quantum Computing Stocks Is a Reason to Double Down on These 4 Names - Barchart - January 15th, 2025 [January 15th, 2025]
- Quantum Computing Stocks Collapse: Here's Why - The Motley Fool - January 15th, 2025 [January 15th, 2025]
- NVIDIA Announces First-Ever Quantum Day At GTC 2025, Days After Jensen Huang Said Quantum Computing Is 20 Years Away - Benzinga - January 15th, 2025 [January 15th, 2025]
- SAP CEO Sees Huge Quantum Computing Impact In 3 To 4 Years - Investor's Business Daily - January 15th, 2025 [January 15th, 2025]
- MIT sets world record with 99.998% fidelity in quantum computing breakthrough - Interesting Engineering - January 15th, 2025 [January 15th, 2025]
- Quantum Computing Stocks Jump On D-Wave, Carahsoft Partnership - Yahoo! Voices - January 15th, 2025 [January 15th, 2025]
- IonQ and Rigetti: Top Analyst Chooses the Best Quantum Computing Stocks to Buy - TipRanks - January 15th, 2025 [January 15th, 2025]
- Scientists Create Split-Electrons, Unlocking the Future of Quantum Computing - SciTechDaily - January 15th, 2025 [January 15th, 2025]
- Quantum Computing Can Be Brought to the Masses, if It Is Decentralized - CCN.com - January 9th, 2025 [January 9th, 2025]
- Why Quantum Computing Specialist IonQ (IONQ) May Have Reached The End Of The Road - Barchart - January 9th, 2025 [January 9th, 2025]
- Nvidia CEO Jensen Huang just tanked quantum-computing stocks after saying their most exciting developments are more than a decade away - Fortune - January 9th, 2025 [January 9th, 2025]
- Quantum Computing Stocks Sink as Nvidia CEO Says Tech Is 15 to 30 Years Away - Investopedia - January 9th, 2025 [January 9th, 2025]
- Why Quantum Computing Stocks Rigetti Computing, Quantum Computing, and D-Wave Computing All Plunged Today - The Motley Fool - January 9th, 2025 [January 9th, 2025]
- Quantum Computing Stocks Crashed -- Here's Why - The Motley Fool - January 9th, 2025 [January 9th, 2025]
- Nvidia CEO Jen-Hsun Huang's simple reminder that useful quantum computing is a long way off has somehow caused industry stocks to plummet - PC Gamer - January 9th, 2025 [January 9th, 2025]
- How Quantum Computing Could Advance One Health - Impakter - January 9th, 2025 [January 9th, 2025]
- Quantum computing stocks are having a rough start to 2025: IonQ, D-Wave, Rigetti tank after Nvidia CEO predicts 20-year horizon - Fast Company - January 9th, 2025 [January 9th, 2025]
- Quantum Computing, Inc. Announces Private Placement of Common Stock for Proceeds of $100 Million - Yahoo Finance - January 9th, 2025 [January 9th, 2025]
- 2025 will see huge advances in quantum computing. So what is a quantum chip and how does it work? - The Conversation - January 9th, 2025 [January 9th, 2025]
- Nvidia CEO Jensen Huang just tanked quantum-computing stocks after saying their most exciting developments are more than a decade away - AOL - January 9th, 2025 [January 9th, 2025]
- Collaboration to explore the use of graphene technology in quantum computing - The Manufacturer - January 9th, 2025 [January 9th, 2025]
- Quantum computing stocks tumble after Nvidia boss Jensen Huang says the tech is still 20 years away - Markets Insider - January 9th, 2025 [January 9th, 2025]
- Want to Buy a Quantum Computing Stock in 2025? You Might Consider This Quantum Computing ETF. - The Motley Fool - January 9th, 2025 [January 9th, 2025]
- Ride the Quantum Computing Wave with These 2 Stocks: RGTI, QBTS - Yahoo Finance - January 9th, 2025 [January 9th, 2025]
- Shaping the Future of Quantum Computing in the United Arab Emirates (UAE) - Quantum Computing Report - January 9th, 2025 [January 9th, 2025]
- How Nvidia CEO Jensen Huang's one sentence wiped out $8 billion in market cap of quantum computing compan - The Times of India - January 9th, 2025 [January 9th, 2025]
- Will This Quantum Computing Stock Be a Must-Own in 2025? - The Motley Fool - January 9th, 2025 [January 9th, 2025]
- Quantum-computing stocks tumble on Nvidia CEOs comment that theyre decades away from being very useful - Sherwood News - January 9th, 2025 [January 9th, 2025]
- Analyzing Quantum Computing Has Been The Most Challenging Project In My Career (NASDAQ:QUBT) - Seeking Alpha - January 3rd, 2025 [January 3rd, 2025]
- Norma and Mabel Quantum Partner to Launch Integrated Quantum Computing System in Korea - Quantum Computing Report - January 3rd, 2025 [January 3rd, 2025]
- How Microsoft and Partners are Shaping the Future of Quantum Computing - The Quantum Insider - January 3rd, 2025 [January 3rd, 2025]
- One Quantum Computing ETF to Buy Hand Over Fist as Googles Willow Supercharges the Market - Barchart - January 3rd, 2025 [January 3rd, 2025]
- MicroCloud Hologram Inc. Develops Semiconductor Quantum Dot Hole Spin Qubit Technology, Advancing the Frontiers of Quantum Computing - Yahoo Finance - January 3rd, 2025 [January 3rd, 2025]
- Quantum Applications in the Automotive Industry - Quantum Computing Report - January 3rd, 2025 [January 3rd, 2025]
- Jim Cramer Warns 'Day Is Not Near Enough To Justify The Current Valuations' Of Quantum Computing, Nuclear Power Stocks - Benzinga - January 3rd, 2025 [January 3rd, 2025]
- MicroCloud Hologram's Stock Surges 31% on Quantum Computing Breakthrough: What This Means for the Future of Tech - The Africa Logistics - January 3rd, 2025 [January 3rd, 2025]
- Quantum Computing Stocks Like Rigetti Computing Are Soaring And This ETF Lets Investors Participate In The Boom Story - Benzinga - January 3rd, 2025 [January 3rd, 2025]
- Future Industry Growth Of Commercial Quantum Computing - openPR - January 3rd, 2025 [January 3rd, 2025]
- GCAN to Explore Strategic Alternatives in Artificial Intelligence and Quantum Computing - GlobeNewswire - January 3rd, 2025 [January 3rd, 2025]
- Jim Cramer talks being cautious with nuclear power and quantum computing stocks - MSN - January 3rd, 2025 [January 3rd, 2025]
- Quantum Computing Is Finally Here. But What Is It? - Bloomberg - December 27th, 2024 [December 27th, 2024]
- Should You Buy Quantum Computing Stocks in 2025? - The Motley Fool - December 27th, 2024 [December 27th, 2024]
- Rigetti Stock Doubles in Days: Here's the Quantum Computing Stock's Next Target - Money Morning - December 27th, 2024 [December 27th, 2024]