# Quantum Computers Explained

Ori Alvarez Originally published at commithub.com ・9 min read

Computers have transformed the way we work: changing how we store information, improving processes for working with that data, and allowing us to easily share the data.
The conception of this amazing tool started the Digital Revolution.
This led to a race to make computers more consumer-friendly by reducing their size over time.
Now in 2020, we have smartphones that have 12GB of RAM and a processor that runs at 2.5GHz.
It's truly phenomenal all the progress we have made, but this technology has a limit; however, quantum computers can provide the means to surpass this limit.
Let's explore first what the classical computer is to get an understanding of why quantum computers were conceived.

## Classical Computer

Classical Computers
(called classical to differentiate standard computers from quantum computers) are devices that follow instructions to achieve a task.
With computer programming, we can create logical operations that tell the computer what to do and in what order.
Programs are a result of that programming that, when run, follow the operations specified in the program.
The early applications of computers were for simple calculations; in essence, even computers today are just a bunch of simple calculations.

### CPU

Classical computers typically have a Central Processing Unit (CPU).
The CPU is in charge of carrying out arithmetic, logical, controlling, and input/output (I/O) operations specified on the instructions.
Modern CPUs are microprocessors, where the CPU is contained on a single metal-oxide-semiconductor (MOS) integrated circuit (IC) chip.
Computers don't understand words or numbers the way humans do and at the lowest level; instead, everything is represented by a binary electrical signal that registers two states: on and off.
The CPU is one of the pieces that take complicated data and decodes it into binary.

### Binary

Binary Numbers
are numbers expressed in a base-2 numeral system: usually 0 (zero) and 1 (one).
Computers use binary because First-generation Computers
utilized Vacuum Tubes,
and precisely measuring and controlling electrical currents was more difficult.
Representing "on" and "off" states with negative and positive charges was more sensible. The "on" state is represented by a negative charge because electrons have a negative charge.
In binary, we represent the "on" state with a 1 and the "off" state with a 0.
Early computers were far bulkier than what we have now, but we've kept the same fundamental principles.

### Transistors

A Transistor
are semiconductor devices used to amplify or switch electronic signals and electrical power.
They’re composed of semiconductor material with at least three terminals to connect to an external circuit.
Transistors act like a switch turning the current on and off—this is where binary comes in.
The transistor is a fundamental building block for all electronics, making devices smaller and cheaper to manufacture and thereby revolutionizing the world of electronics, paving the way for smaller computers.
Compared to vacuum tubes, transistors are smaller and require less power to operate.
Transistors are primarily used in the CPU to perform mathematical calculation, and a series of transistors may also be used as a
Logic Gate
when performing logical operations. Modern CPUs contain millions of microscopic transistors.

### Moore's Law

Moore's Law
originated as the observation that the number of transistors in an integrated circuit was doubling every two years.
The observation was named after Gordon Moore, the co-founder of Fairchild Semiconductor and later CEO of Intel.
Moore's prediction became the development principle used in the semiconductor industry to guide long-term planning and to set targets for research and development (R&D) for several decades.
Moore's law is an observation and projection of a historical trend, not a physical or natural law. The rate held steady from 1975 until around 2012.

### Limitations of the Classical Computer

Moore's Law held strong over the years, with transistors becoming increasingly smaller to fit into CPUs.
Transistors have gotten as small as 10 nanometers, so small that the channel that carries the electrical current through the transistor cannot always contain it.
The trend is already starting to slow down because we face a physical limitation due to
Quantum Tunneling.

## Quantum Computer

Quantum Computers
apply quantum-mechanical phenomena, such as superposition and entanglement, to perform computation.
They instead use Qubits to hold quantum information.
Similar to the bit in classical computers, a qubit can result in a 1 or a 0, but the general state according to quantum mechanics can be a superposition of both.
When you measure a classical bit, the state won't be disturbed, it can only be a 1 or a 0.
In contrast, when you measure a qubit, the superposition state is destroyed. Before being observed, there is no way to tell if a qubit is 1 or a 0.

A qubit can hold more information, namely, up to two bits using superdense coding.
They also exhibit an effect called quantum entanglement, allowing qubits to express higher correlation than classical systems.
his effect makes quantum computers very efficient for doing very intensive calculations that classical computers will take too long to perform.

Quantum computing methodologies can be divided into two categories: analog and digital.

### Analog

These approaches can be further divided into quantum simulation, quantum annealing, and adiabatic quantum computation.

#### Quantum Simulations

Classical computers have difficulty simulating quantum mechanics, but by using quantum simulators, we can study the phenomena more accurately.
Running a simulation is not as efficient as running an actual quantum computer, but it's a start for studying the technology and its applications.
A great example of a quantum simulator is Qiskit
, where you run a simulation of a quantum computer through your classical computer.

#### Quantum Annealing

In essence, Quantum Annealing finds the low-energy states of a problem.
A fundamental rule in physics is that everything tends to seek a minimum energy state.
This is also true for quantum physics.
In optimization problems, we search for the best of many possible combinations. By using physics, we can frame these sorts of problems as energy minimization problems.
, which can get stuck in local minima, the global minimum is always reachable thanks to quantum tunneling.
n a sampling problem for many low-energy states, characterizing the shape of the energy landscape is useful for creating a probabilistic model of reality in machine learning problems.
One company that uses quantum annealing is DWAVE.

This is closely related to quantum annealing, but it uses the Adiabatic Theorem to do calculations.
Born and Fock first stated this concept as follows:

“A physical system remains in its instantaneous eigenstate if a given perturbation is acting on it slowly enough and if there is a gap between the eigenvalue and the rest of the Hamiltonian's spectrum.”

More simply terms, when you subject a quantum mechanical system to gradually changing external conditions, its functional form adapts.
When you subject the system to rapidly varying conditions, there isn’t enough time for the functional form to adapt, so the spatial probability density doesn’t change.

### Digital

A digital quantum computer uses quantum logic gates to perform computational operations.
Just like the classical computer, which uses the logic gates we explored before, the quantum computer uses Qubits to perform those operations.
Many classical logic gates are not reversible, but quantum logic gates are.
Moreover, it is possible to perform classical computing with only reversible gates.

### Applications of a Quantum Computer

Apart from solving computational problems like quantum simulations, quantum annealing, and adiabatic quantum computation, there are more applications for a quantum computer.

#### Cryptography

Quantum computers can easily break many of our cryptographic systems by using Shor's Algorithm.
Integer factorization is used for the security of public-key cryptographic systems, and it's believed that it’s unfeasible for classical computers to crack the problem due to computational limitations.
Meanwhile, quantum computers using the aforementioned algorithm can find the factors and solve the problem.

#### Solving Linear Equations

The Quantum Algorithm for Linear Systems of Equations
provides a speedup over classical counterparts.

#### Quantum Search

Using Groover's Algorithm we can perform quadratically fewer queries on a database than a classical computer.
This is a huge optimization advantage that we get using this algorithm.

#### Quantum Supremacy

This term was introduced by John Preskill to refer to a hypothetical speedup advantage that a quantum computer would have over a classical computer in a given field.
In October 2019, a Sycamore processor created in conjunction with Google AI Quantum was reported to have achieved quantum supremacy.
It provides calculations over 3,000 times faster than those of Summit, generally considered the world's fastest computer.

## Personal Thoughts

I get excited over the idea that quantum computers are being developed and we need them ever more to achieve scientific milestones.
I don't think AI will evolve much unless quantum computers are involved, because classical can only do so much.
I also don't think we will soon have a commercially available quantum computer owing to how early we are in the field and how expensive these computers are.
Despite the development of classical computers falling increasingly short of Moore's law, consumers keep asking for faster devices, and this could accelerate the development of quantum computers.
I'm very optimistic about the future role of these computers.

## Conclusion

I hope you enjoyed this long read and are excited as me as to the applications of these computers.
It will probably take years until we have more quantum computers around, but at least we have Qiskit to give it a try for ourselves in the meantime.

Happy Coding! 🚀

## Resources

Posted on by:

### Ori Alvarez

I'm a programmer living in Michigan that loves AI and building beautiful but functional websites and web apps.

### Discussion

Thank you for sharing

Take a peek into the world of Charles Babbage whom was the inventor of the calculating machine which uses mechanical energy to process algorithms.. Vacuum tubes came way after the mechanical IBM hole punches.

Quantum computing is not relatable to classical computers in any regard.. Classical computers are based off from human create mathematics which emulates nature. Whereas quantum computers use nature directly, eliminating most of the human error we find in Integrate chips.. IE the recent samsung bluray players that all stop working this past week.. woops.

cheers :)