Category: Quantum Computing

  • Quantum Chess

    Preface – This post is part of the Quantum Computing series.

    Introduction

    Quantum chess is a variant of the traditional game of chess that incorporates elements of quantum mechanics. In quantum chess, each piece on the board is represented by a quantum state, which can exist in multiple positions at the same time. This allows for the possibility of superposition, entanglement, and other quantum phenomena in the game.

    Quantum Chess

    What is a Quantum Chess?

    In a game of quantum chess, each player starts with a standard chess set, with the pieces arranged in their initial positions on the board. However, instead of moving the pieces in the usual way, players can choose to either move a piece to a new position, or apply a quantum operation to it, such as a rotation or a reflection. This allows for the possibility of multiple moves at the same time, and for pieces to move to seemingly impossible positions.

    The rules of quantum chess are similar to those of traditional chess, with some additional rules to account for the unique features of quantum mechanics. For example, the superposition rule allows a player to move a piece to multiple positions at the same time, while the entanglement rule allows for the creation of correlations between different pieces on the board.

    Overall, quantum chess is a fascinating and challenging variation of the traditional game of chess, that offers a new way to explore the principles of quantum mechanics. While the game is still in the development stage, it has already attracted a dedicated community of players and enthusiasts.

    How is Quantum Chess different from Classical Chess?

    Quantum chess is a variant of the traditional game of chess that incorporates elements of quantum mechanics. This makes it different from classical chess in several ways.

    One of the main differences is that, in quantum chess, each piece on the board is represented by a quantum state, which can exist in multiple positions at the same time. This allows for the possibility of superposition, entanglement, and other quantum phenomena in the game. In classical chess, on the other hand, each piece can only be in one position at a time, and the rules of the game do not allow for the possibility of quantum phenomena.

    Another difference is that, in quantum chess, players can choose to either move a piece to a new position, or apply a quantum operation to it, such as a rotation or a reflection. This allows for the possibility of multiple moves at the same time, and for pieces to move to seemingly impossible positions. In classical chess, on the other hand, players can only move their pieces to a new position, and the rules of the game do not allow for the possibility of applying quantum operations to pieces.

    Finally, the rules of quantum chess are different from those of classical chess. In quantum chess, there are additional rules that account for the unique features of quantum mechanics, such as the superposition and entanglement rules. In classical chess, on the other hand, the rules are based solely on the traditional rules of the game.

    Overall, quantum chess is a fundamentally different game from classical chess, due to the incorporation of quantum mechanics into its rules and gameplay. While the game is still in the development stage, it has already attracted a dedicated community of players and enthusiasts.

    Where can we play Quantum Chess?

    As quantum chess is a relatively new and experimental variant of the traditional game of chess, it is not yet widely available to play. Currently, there are a few different ways to play quantum chess, depending on your location and preferences.

    One option is to play quantum chess online using a computer or mobile device. There are several websites and apps that offer the ability to play quantum chess online, either against other players or against a computer opponent. This is a convenient way to try out the game and learn the rules, without having to purchase any special equipment.

    You can play Quantum Chess online here.

    You can play Quantum Chess on Unity here.

    You can play Quantum Chess on Android here.

    You can play Quantum Chess on iOS here.

    Another option is to play quantum chess in person, using a physical board and pieces. There are a few companies that offer quantum chess sets, which include a board, pieces, and instructions for playing the game. These sets can be purchased online or at specialty game stores, and can be played with friends or family members.

    Finally, you can also attend a quantum chess event or tournament, where you can play the game against other players and compete for prizes. These events are typically organized by local game clubs or quantum mechanics enthusiasts, and can be a fun and engaging way to learn more about the game and meet other players.

    Overall, while quantum chess is not yet widely available, there are several options for playing the game, depending on your location and preferences.

  • What is a Quantum Internet

    Preface – This post is part of the Quantum Computing series.

    Introduction

    A quantum internet is a hypothetical network that would use quantum mechanics to encode and transmit information. This would allow for the transmission of information with perfect security, as any attempt to intercept the information would cause it to be destroyed.

    Quantum Internet

    The basic idea behind a quantum internet is to use the principles of quantum mechanics, such as superposition and entanglement, to encode and transmit information. In a quantum internet, information would be encoded in quantum states, such as the spin of a particle or the polarization of a photon. These quantum states would then be transmitted from one location to another, using specialized quantum communication channels.

    Advantage of Quantum Internet

    One of the key advantages of a quantum internet is that it would be fundamentally secure. This is because the principles of quantum mechanics, such as the no-cloning theorem, prevent any information encoded in a quantum state from being copied or intercepted without destroying the original. This would make it impossible for anyone to eavesdrop on a quantum communication, ensuring that the information remains secure.

    While a fully-functional quantum internet is still a long way off, there are currently several research projects and experimental demonstrations that are working towards this goal. These include efforts to develop scalable quantum computers, which would be needed to process the vast amounts of data that would be transmitted over a quantum internet, as well as efforts to develop long-distance quantum communication channels, such as satellite-based systems.

    What are the Layers of a Quantum Internet?

    The concept of a quantum internet is still in the realm of theoretical physics and engineering, so there is no agreed-upon model for its structure or organization. However, some possible layers of a quantum internet might include the following:

    1. Quantum communication channels: These would be the physical infrastructure that would be used to transmit quantum information from one location to another. This could include fiber optic cables, satellite-based systems, or other specialized technologies that are capable of transmitting quantum information over long distances.
    2. Quantum routers: These would be the devices that would be used to route quantum information from one location to another, much like the routers that are used in today’s classical internet. Quantum routers would be able to process and manipulate quantum information, as well as control the flow of quantum information through the network.
    3. Quantum repeaters: These would be devices that would be used to extend the range of quantum communication channels, by amplifying and regenerating quantum signals over long distances. Quantum repeaters would be critical for building a global quantum internet, as they would allow quantum information to be transmitted over vast distances without losing fidelity.
    4. Quantum servers: These would be the computers that would be used to store and process the vast amounts of data that would be transmitted over a quantum internet. Quantum servers would be able to store and manipulate quantum information, as well as perform complex calculations on this information.
    5. Quantum applications: These would be the software programs and applications that would be used to take advantage of the unique capabilities of a quantum internet. Quantum applications could include everything from secure communication systems to advanced algorithms for optimizing complex processes.

    What all can we perform on Quantum Internet that is not possible on Classical Internet?

    A quantum internet would have several unique capabilities that are not possible on today’s classical internet. Some of these might include:

    1. Perfect security: One of the key advantages of a quantum internet is that it would be fundamentally secure. This is because the principles of quantum mechanics, such as the no-cloning theorem, prevent any information encoded in a quantum state from being copied or intercepted without destroying the original. This would make it impossible for anyone to eavesdrop on a quantum communication, ensuring that the information remains secure.
    2. High-speed communication: A quantum internet would also be capable of transmitting information at speeds that are much faster than those of today’s classical internet. This is because quantum information can be transmitted over long distances without losing fidelity, allowing for the transmission of large amounts of data in a short amount of time.
    3. Enhanced computing power: A quantum internet would also enable the development of new, more powerful computing systems. This is because quantum computers, which would be needed to process the vast amounts of data that would be transmitted over a quantum internet, are capable of performing certain types of calculations much faster than classical computers.
    4. New algorithms and applications: A quantum internet would also enable the development of new algorithms and applications that are not possible on today’s classical internet. For example, quantum computers could be used to solve complex optimization problems, or to perform simulations of complex systems that are too large or complex to be simulated on classical computers.

    Overall, a quantum internet would offer a range of unique capabilities and opportunities that are not possible on today’s classical internet. While the development of a fully-functional quantum internet is still many years away, the potential benefits of this technology are vast, and could lead to significant advances in many fields.

    Difference between Classical Internet and Quantum Internet

    The main difference between a classical internet and a quantum internet is the way that they encode, transmit, and process information.

    A classical internet uses classical physics to encode and transmit information, using electrical signals to represent bits of information. This means that a classical internet is subject to the limitations of classical physics, such as the speed of light and the laws of thermodynamics.

    A quantum internet, on the other hand, uses quantum mechanics to encode and transmit information. This means that a quantum internet would use quantum states, such as the spin of a particle or the polarization of a photon, to represent bits of information. This would allow for the transmission of information with perfect security, as any attempt to intercept the information would cause it to be destroyed.

    Another key difference between the two is the way they process information. A classical internet uses classical computers, which are based on the principles of classical physics, to store and manipulate information. A quantum internet, on the other hand, would use quantum computers, which are based on the principles of quantum mechanics, to process and manipulate quantum information.

    Overall, the main difference between a classical internet and a quantum internet is the way that they encode, transmit, and process information. A classical internet is based on classical physics, while a quantum internet is based on the principles of quantum mechanics.

  • What is the Difference between Classical mechanics and Quantum Mechanics?

    Preface – This post is part of the Quantum Computing series.

    Classical Mechanics

    Classical mechanics is the branch of physics that deals with the motion of macroscopic objects, such as cars, planets, and baseballs. It is based on the principles of Newtonian mechanics, which were first formulated by Sir Isaac Newton in the 17th century.

    Quantum Mechanics

    Quantum mechanics, on the other hand, is the branch of physics that deals with the behavior of subatomic particles, such as electrons and photons. It is based on the principles of quantum theory, which were first developed in the early 20th century.

    Difference between Classical mechanics and Quantum Mechanics

    The main difference between classical mechanics and quantum mechanics is the scale at which they are applied. Classical mechanics is used to describe the motion of objects that are large enough to be seen with the naked eye, while quantum mechanics is used to describe the behavior of particles that are too small to be seen, even with a microscope.

    Another key difference between the two is the way they describe the behavior of objects. Classical mechanics uses the language of calculus to describe the motion of objects, while quantum mechanics uses the language of wave-particle duality to describe the behavior of particles. This means that classical mechanics is deterministic, meaning that if you know the position and velocity of an object at a given time, you can predict its future motion with perfect accuracy. Quantum mechanics, on the other hand, is probabilistic, meaning that you can only predict the probability of an event occurring, rather than the exact outcome.

    There are a few other important differences between classical mechanics and quantum mechanics.

    One is that classical mechanics is based on the idea of realism, which means that objects have definite properties, such as position and velocity, that exist independently of whether they are being observed. Quantum mechanics, on the other hand, is based on the idea of uncertainty, which means that the properties of particles are only defined when they are being measured. This means that, according to quantum mechanics, the act of observation can affect the outcome of an experiment.

    Another difference is that classical mechanics is a deterministic theory, which means that given the initial conditions of a system, the future evolution of that system can be predicted with perfect accuracy. Quantum mechanics, however, is a probabilistic theory, which means that the future evolution of a system can only be predicted in terms of probabilities.

    Finally, classical mechanics is a classical theory, which means that it is based on the concept of continuous quantities, such as position and velocity. Quantum mechanics, on the other hand, is a quantum theory, which means that it is based on the concept of discrete quantities, such as quanta of energy. This means that, according to quantum mechanics, the smallest possible unit of a physical quantity, such as energy or angular momentum, is not a continuous value, but a discrete one.

  • Introduction to Quantum Mechanics

    Preface – This post is part of the Quantum Computing series.

    Introduction

    What comes to your mind when someone asks you “what do you find mysterious?” Well, there are a million answers that one can think of. For example, you may find someone’s behavior or actions strange, you may think of the Bermuda Triangle, or those paranormal activities may catch your attention, or what about the time? Does it really exist? How does it work? Truly, there are so many things that puzzle us most of the time. Most of us believe that nothing is more peculiar than the universe itself! This ginormous place of galaxies, black holes, and planets,… (you name it, we include it, and this list will just go on like that) has so much to offer us, but at the same time, it leaves us with some mind-boggling questions that are really fascinating. However, it throws us into a never-ending, exhausting journey. If we look at the bigger picture, then we can say that nature is weird, and it comprises every damn living or non-living thing, an eco-system, etc., and the universe is just a part of it! What if someone tells you that science has all the answers? Then it will be a eureka moment for us. It may seem easy at first but we have to go through a lot of conundrums to solve the mystery. One of the most bizarre topics that we are going to talk about is quantum physics, the mind-blowing theory of modern physics which may help us find some interesting facts about nature.

    Imagine you are driving a car. While driving, there are several parameters that you consider. For example, what should be the speed? What about the velocity? When you are going to press the accelerator, should the speed be slow or fast? How far you have come, when you are going to stop, etc. All these parameters can be solved using classical mechanics. This is all about the things that are visible and sensed by our brain. By using the sophisticated system of math and physics, we can measure certain quantities. Among all these, the most fundamental entity we can think of is an atom. Does it have any connection with quantum mechanics? Is it even possible to talk about an atom that cannot be seen with the naked eye? If we get into the nitty-gritty, it will leave us awestruck with some really difficult ideas about different subatomic particles. Wait a minute! Why is it so herculean to comprehend this subtle idea of quantum mechanics? Well, the spectrum of human perception is not big enough to perceive the spooky actions that happen at such a minute level.

    What is Quantum Mechanics exactly?

    Quantum means discrete quantity i.e. the smallest bit of something. For instance, a single water molecule from the Pacific Ocean or a speck of dust. Mechanics means the behavior and motion of something. So this term together stands for the interaction and motion of individual objects of a bigger quantity. But what if we want to study the constituent particles that are smaller than an atom? To predict the activities that are going on at the subatomic scale, we need a wave function which is typically a mathematical function. For example, using a wave function it is possible to find the location of a particle. This is just a small part of this tiny realm about what it truly means. To understand the underpinnings of quantum strangeness let’s talk about the double-slit experiment. Which was performed by one of the greatest scientists of the 18th century Thomas young.

    Consider two scenarios: 1. Classical case. 2. Quantum Case

    Case 1: Classical case

    Think of an experimental setup shown in the given figure.

    • Imagine you have a source from which marbles are coming out.
    • There are two slits on the slide and a screen is kept at a distance d from the slide to observe the pattern.
    • These marbles pass through slits and hit the screen. You can imagine the bands much like slits appeared on the screen.

    Marble can be thought as a particle. Now replace the source of marble with a source of light. Light behaves like a wave. The pattern of dark and light fringes can be shown as following. There will be an interference: Constructive (Bright) and Destructive (light).

    Image source: Google

     

    This is the real picture of interference. Here Diffraction also plays a role. As of now, we won’t get into the nitty gritty of it.

    Case 2: Quantum Case

    Think of a beam consists of electrons. As we all are aware, electrons are particles. Block one slit and let electrons pass through another slit. The pattern will be as similar to the pattern made with marbles (a single band). However, when they pass through double slits, they must behave like marbles as per our understanding (figure 1, two bands). However, they exactly behave like a wave and create the interference pattern.

    Here is what is more interesting, in 2nd case if we choose to shoot electrons one at a time, there will be a single spot on the screen and no chance of interference. However, after some time the entire pattern is similar to the pattern of a wave. You may think, how it can be possible! Does the electron divide itself into two particles initially and later interfere with each other after passing through slits to hit the screen? Which slit an electron goes through? To observe this carefully, one idea is to place a detector by slits and watch over the electrons! It may sound funny but when we do that they behave like marbles and create the two bands’ pattern. Do electrons really know which slit they are going to pass through? This arises the question does an electron behave like a particle or wave? which leads to a wonderful phenomenon wave-particle duality.

    Stern Gerlach Experiment: PDF

    Postulates of Quantum mechanics: Link

    Applications of Quantum Mechanics

    (Kindly click the link to learn more)

    Other areas: where Quantum Mechanics dominates – Machine learning, communication, finance, optimization, chemistry, astrophysics, etc.

    These are not the actual cases if we choose to ignore the main part. For example, degenerate and non-degenerate time-independent perturbation theory, the semi-classical WKB approximation, time-dependent perturbation theory, the adiabatic approximation, and scattering theory.

  • Architecture of a Quantum Computer

    Preface – This post is part of the Quantum Computing series.

    Introduction

    In the previous module, we discussed some of the most important concepts in Quantum Mechanics and how they are being utilized to design a functional Quantum Computer. In this module, we will discuss the basic architecture of a Quantum Computer.

    The architecture of a Quantum Computer

    Image Source: Fu, Xiang et al. “A heterogeneous quantum computer architecture.” Proceedings of the ACM International Conference on Computing Frontiers (2016): n. pag.

    Layers of Quantum Computer

    As shown in the figure above, there are total of seven layers that can be divided into five main categories as follows:

    1. Qubits

    The two bottom-most layers implement the main hardware of the Quantum Computer. The bottom-most layer is the Quantum Chip which contains the actual arrangement of qubits. Right above the quantum chip, there exists a Quantum-Classical Interface. The primary function of the Quantum Classical Interface is to make the measurement. Classical bits are required to make measurements on a qubit.

    2. Compilers

    A compiler is mainly a translator. It translates a high-level language program into the corresponding machine code. Quantum Computers also need Compilers to translate high-level instructions into corresponding low-level instructions that can be executed on the hardware level.

    The Compiler block shown in the figure consists of two main parts: a Conventional Host Compiler and a Quantum Accelerator Compiler.

    The Conventional Host Compiler compiles the classical logic and the Quantum Accelerator Compiler produces the quantum circuits. The quantum compiler will perform quantum gate decomposition, reversible circuit design, and circuit mapping and translates the logical quantum operations into a series of physical operations.

    The third dimension in the figure represents the error correction schemes that drive the logical to the physical transformation of the quantum instructions.

    3. Quantum Instruction Set Architecture (QIST)

    QIST is the main divide between Quantum Hardware and Software. The Quantum Instruction set provides the programmer with the basic logical instruction set to facilitate the designing of quantum algorithms. The Instruction set also allows the programmer to go with various encoding schemes and provides error correction functionality.

    The block right below QIST is divided into two parts:

    1. QEC

    QEC refers to Quantum Error Correction. Quantum Computers are error-prone, so some error correction schemes must be implemented to make sure the programs on the computers give accurate results. The First Error Correction Codes for Quantum Computers was given by Peter Shor called Shor codes. Since then, various error-correcting codes have been developed making QED an active area of research in the Quantum Computing Community.

    2. QEX

    QEX refers to Quantum Execution. QEX executes the instructions generated by the Compiler.

    4. Software

    The Programming Paradigm and languages block represent the high-level interface used by the programmer or algorithm designer to program a Quantum Computer. Some famous programming frameworks to program Quantum Computers are Qiskit, Cirq, Q#, and many more.

    5. Quantum Algorithm

    Quantum Algorithm is the topmost layer in the Quantum Architecture Stack. Quantum Algorithms are designed by exploiting the Quantum-Mechanical properties of the hardware layers. The high-level programming languages and compilers must be developed such that the algorithms can easily exploit the underlying quantum hardware.

    Information Source: Fu, Xiang et al. “A heterogeneous quantum computer architecture.” Proceedings of the ACM International Conference on Computing Frontiers (2016): n. pag.

     

  • Important Definitions related to Quantum Computing

    Preface – This post is part of the Quantum Computing series.

    Introduction

    To recap, in the last module, we explored the inner workings of a Quantum Computer by mathematically defining the notion of a Quantum State. We introduced the mathematical notation used to define quantum states and, in the end, discussed the design and operating principles of a D-Wave Quantum Computer.

    In this module, we will provide rigorous definitions and corresponding intuition of some technical terms we have encountered in the previous modules.

    Qubit

    Qubit is short for Quantum bit. A qubit is a fundamental unit of Quantum Computation. The book Quantum Computation and Quantum Information by Neilson and Chung -which is as close to a standardized textbook on Quantum Computing as we’ve got so far- defines a qubit as an abstract, mathematical object. Although – as some of you may recall from previous modules – a qubit is a physical entity, defining it as an abstract, mathematical object will yield to us the benefit of describing it as a generalized object, independent of its specific, physical method of implementation.

    A qubit is the fundamental unit of quantum information. A qubit, just like a classical bit has a state. The state of a qubit is described using Dirac’s notation (“”) which is the standardized notation used to describe quantum states. A qubit can be in states |0, |1⟩, or a linear combination of states |0 and |1and as shown below:

    =α|0+β|1

    Here,α and β are complex numbers describing probability amplitudes of the qubit being in the |0 or |1 respectively. |0 and |1 are the orthonormal basis vectors in a two-dimensional vector space. Thus, a qubit can be described as a unit vector in a two-dimensional vector space.

    Using vector notation, the above equation can be written as:

    vector notation

    Superposition

    Superposition is one of the fundamental principles of Quantum Mechanics. The wave-particle duality describes that an electron behaves as both a wave and a particle, but what does it actually mean? How can something behave as both a wave and a particle? Classically, we know that an object can either be discrete or continuous. But how can it be both? Let’s find out!

    The Double Slit Experiment

    Thomas Young in 1802 designed an experiment to demonstrate the wave nature of light. The Double Slit experiment was designed such that a light source randomly launches photons at a barrier containing two slits as shown in figure.

    ————– Double_Slit_Experiment_with_detectors

    Image Source: 老陳, CC BY-SA 4.0, via Wikimedia Commons

    The screen behind the barrier should record the pattern which if the photons are assumed to be particles should show something like two vertical lines of light passing through the barrier.

    Instead, the screen records an interference pattern as shown below.

    Double_slit_interference

    Interference patterns are generally generated when waves constructively and destructively interfere with each other. So, although Mr. Young succeeded in demonstrating the wave nature of light no one really understood what was really going on until the theory of Quantum Mechanics was formalized.

    So, what on Earth is really going on? Well, the thing is no one really understands what is going on. The path of the photons, the slit they go through and the path they take is not exactly traceable. As we know, measuring a quantum system collapses the superposition, so we cannot detect exactly how photons bring about an interference pattern. But we do know that there must be something fundamentally wave-like in the nature of photons to bring about the interference pattern.

    Superposition

    Later, it was discovered that after going into the slit, the photon exists in superposition. Think of it like a dense cloud, the photon can exist anywhere within the cloud with each position corresponding to a probability amplitude. This is Superposition.

    Superposition is defined as the ability of a quantum system to be in a combination of multiple states at the same instance.

    Measurement

    Measurement collapses the superposition. When a quantum system is measured, the superposition collapses and the system comes down to one of its basis states.

    Two-level superposition

    Two level superposition

    Four level superposition

    Four level superposition

    Entanglement

    Entanglement is the phenomenon associated with quantum systems where two systems are correlated to each other such that the measurement or manipulation of one system will affect the other immediately even when separated by vast distances.

    To understand Entanglement better, let’s take an example. Let’s assume we have two balls that are entangled to each other. The balls are in a superposition of black and white before observation, once observed a ball can either be black or white. Let’s say we have two observers Alice and Bob each observing one ball. The balls are entangled so when Alice observes her ball and sees a black ball Bob will immediately see his ball turn white or vice a versa. (Alice and bob can both see the ball turn the same color as well, it depends upon how the objects are entangled).

    Albert Einstein never could reconcile with the theory of entanglement. He referred to entanglement as “spooky”. And it was a perfectly valid reaction as scientists did not know how exactly entanglement worked at the time. How can an object pass information to another object separated by a distance as large as two different galaxies almost immediately? This is only possible if the objects are communicating faster than the speed of light which completely breaks Einstein’s theory of special relativity. This is a common misconception that was later proved false after conducting various experiments. Even Quantum Physics cannot achieve faster than light communication.

    Teleportation

    Quantum Teleportation is the process of sending quantum information from a sender to a receiver. Teleportation is achieved through entanglement, the sender and receiver’s qubits are entangled in Bell States. The Bell State is described as follows in a two-qubit system:

    Bell State

    Here, in |00 and |11the first 0/1 represents the first qubit and the second 0/1 represents the second qubit. Both the states are in equal superposition with probability amplitude probability amplitude:

     

    states are in equal superposition

    Teleportation sends classical information across the channel so it cannot achieve faster than light speed as we discussed in the previous section.

  • What is a Quantum Computer?

    Preface – This post is part of the Quantum Computing series.

    Introduction

    So far, we have discussed how Quantum Computing in contrast to Classical Computing. In this module and upcoming modules, we will start to discuss the inner workings of a Quantum Computer. In this module, we will discuss Quantum Processors Units or QPUs and their architectures. In the end, we will demonstrate the inner workings of the D-Wave Quantum Computer. We have much to discuss so, let’s skedaddle!

    What is a Quantum Processing Unit?

    A Qubit is the fundamental part of a QPU. All the operations in a QPU are performed on Qubits. Now, we would like to point out at the very beginning that many architectures exist to arrange Qubits on Quantum Processors and all of them have their advantages and drawbacks. As of now, no architecture is proven to be better in terms of efficiency for all kinds of problems. Some promising contending architectures include Superconducting, Photonic, and Trapped ion. Now, we realize these names may sound daunting but just keep a lookout for these in the literature until we eventually discuss each architecture in more detail.

    What is a Quantum Computer?

    In the previous sections and modules, we talked about Quantum Computers very abstractly. There were no rigorous proofs or mathematical formulas to actually give you a technical context into the inner workings of Quantum Computers. Here, we will not go all maniac on you with mathematical formulas but we will give you enough to demonstrate our point more clearly. Don’t worry if you don’t understand all of it at once. We advise you to go through this section and do some additional readings we provide at the end of this module.

    We will start by defining and representing a Quantum State mathematically. A Quantum State is represented using a vector. The vector represents the probability of the qubit being in that state. A two-qubit system can be represented as shown below.

    |0=1 0         |1=0 1

    The Quantum States are described using the bra-ket notation. We will discuss it in detail, for now “| ” also known as “ket” is used to specify that 0 and 1 are quantum states.

    The vectors representing the quantum states describe the probability of the qubit being in that state. This is a very powerful idea and should be digested as we go further into Quantum Mechanics. Here, the first vector (1 0) describes that the qubit is in the |0 state with probability 1 and |1 state with probability 0. We index the vector starting with 0 and go further along up to the total number of qubits in the system.

    Similarly, the second vector (0 1) describes that the qubit is in the |0state with probability 0 and |1state with probability 1.

    Representation of a Quantum State

    A pure Quantum state is a superposition of classical states written as,

    Representation of a Quantum State

    Where, is a complex number representing the probability amplitude of each state in |.

    Mathematically, the states |0, . . . , |N-1 form an orthonormal basis of an N-dimensional Hilbert space.

    A quantum state | is a vector in this space, usually written as an N-dimensional column vector of its amplitudes:

    quantum state in N dimension

    Example of a Quantum Computer: D-Wave

    The picture above shows a D-Wave Quantum Computer. Most of the apparatus you see is used to keep the Quantum Processor situated at the bottom at sub-zero temperature. The Qubits get noisy if the temperature is not maintained which results in Quantum Decoherence. Quantum Decoherence results in errors, noise, and sometimes even loss of information in qubits.

    The D-Wave Quantum System is implemented superconducting qubits. There are two models based on which Quantum Computers can be built:

    • Quantum Gate Model: In this model, problems are expressed in terms of quantum gates. Companies like Microsoft, IBM, Google, etc. use the Gate Model in their Quantum Computers.
    • Quantum Annealing Model: In this model, problems are expressed in terms of optimization problems from which the computer then finds the optimal solution. D-Wave systems use Quantum Annealing to search for solutions in state space.

    D-Wave has commercialized its quantum services through its cloud platform Leap. With their latest QPU (Quantum Processing Unit) containing over 5000 qubits, D-Wave is indeed a major player in the Quantum arena.

    With this, we conclude this module. In the next module, we will discuss important Quantum Phenomena like Superposition, Entanglement, Interference, and teleportation in detail.

     

  • Difference between Classical Computing and Quantum Computing

    Preface – This post is part of the Quantum Computing series.

    Introduction

    In the previous module, we discussed classical computing in detail. In this module, we will discuss the key differences between classical and quantum computing. This is perhaps the last module before we dive deep into the nitty-gritty details of quantum computing. So, without further ado let’s get started, shall we?

    Classical Computing

    Once again, Classical or Modern Computers are made up of fundamental units called “bits”. A single bit can take a binary state i.e., 0 or 1, high or low. A bit can be in a single state at a time. It can either be 0 or 1, either at high or low voltage, and nothing in between.

    Quantum Computing

    Quantum computers on the other hand, as we discussed before are fundamentally different from Classical Computers. Fundamental units of Quantum Computers are called Quantum bits or “Qubits”. Unlike “bits”, “qubits” can be in multiple states at the same time. But before talking about the nature of qubits, let’s talk about what exactly they are made of.

    Transistors that make up classical processors are basically silicone (NPN/PNP) semiconductors. The transistor is designed to represent the high or low voltage; the principle as we discussed above, on which modern computing is tethered. An interesting challenge presented itself when physicists began thinking about what should be used to represent a Qubit.

    It was quite obvious that it should be a Quantum material, but basically, everything is a Quantum Material when it is cooled below a certain threshold temperature. Photons, electrons, superconducting materials, etc behave Quantum Mechanically. So, where to start?

    Well, the good news is there are several different effective Quantum Computers that use different materials as qubits. Their effectiveness and efficiency vary according to various circumstances. We will discuss this further in the upcoming modules. Just remember that there is not a single material like the transistor which resides in different Quantum processors. Different groups and companies have different materials representing Qubits and which method is more effective than another is a much-debated topic in the Quantum Computing Community.

    For now, just keep in mind that a qubit can either be in state 1, state 0, or a combination of states 1 and 0. And this is because our Qubits are “Quantum Mechanical”.

    Difference between Classical Computing and Quantum Computing

    Okay, enough with the jargon. Let’s summarize some points we discussed until now for some much-needed clarity.

    Classical Computing Quantum Computing
    A classical computer is fundamentally made up of binary digits or “bits”. A Quantum Computer is fundamentally made up of “Qubits” or Quantum Bits
    A bit can either be in state 0 or state 1 at a given instance. A Qubit can either be in state 0, state 1, or a combination of state 1 and state 0 at a given instance.
    Bits are made up of transistors in a classical processor. Qubits are made up of “Quantum” materials like ions, photons, or superconducting materials.
    Classical computers are relatively less error-prone than quantum computers Quantum Computers are a lot more error-prone than classical computers
    Transistors do not need sub-zero temperatures to operate. Qubits require sub-zero temperatures to preserve their Quantum nature.
    Classical computers cannot run algorithms like optimization problems, machine learning models, etc. Very efficiently in most cases. Quantum computers can theoretically run algorithms like optimization problems, machine learning models, etc. much more efficiently than Classical Computers.

     

  • Introduction to Classical Computing

    Introduction to Classical Computing

    Preface – This post is part of the Quantum Computing series.

    Introduction

    As we discussed in the previous module, all modern computing devices share a common design. In this module, we will discuss the fundamentals of modern or “classical” computing devices. You will encounter the word “classical” to describe mainstream computing devices in Quantum Computing literature quite often. Here it is referred to in the same context as that of physics – “Classical” Physics and “Quantum” Physics where “Classical” is used to describe Newtonian Mechanics while “Quantum” is used to describe, well, Quantum Physics.

    What is Classical Computing?

    A “classical” computer is mainly comprised of three parts: Central Processing Unit (CPU), Memory Unit (MU), and Input/Output Units. This is what we call Von Neumann architecture. The CPU handles all the information processing operations in the computer. When you go to buy a computer and look up the specs of devices something like “Intel Core i5” or “Intel Core i7” pops up. These are the specifications that describe the “Core” or the CPU of the computer. There are millions of transistors embedded on the Core which are in binary states i.e., high or low, 0 or 1. The Core of a computer looks something like this,

    A single transistor on the core can take a discrete state; either be in 0 or 1 state. In technical lingo, we use the word “bit”- short for “binary digit”- to describe a single unit of information in classical computers.

    All the algorithms and programs we write are encoded as a set of instructions which are then carried out on the computer processor. But enough about hardware. Now, we shall talk about how programs are run on the hardware. We already discussed this in the previous module with our Dinner Party example where the state space of possible configurations increases exponentially with the number of patrons. (—insert a link to the previous module—)

    This is because classical computers operate more or less sequentially. That is because a set of transistors can be in a single state in an instance, we have to check all the configurations one by one.

    Advantages of Classical Computing

    Classical computing has gotten us this far. We have advanced software to perform a multitude of specific and generalized tasks. We can perform millions of calculations in a matter of minutes, we can automate redundant tasks very easily, and we can design systems to perform highly specialized operations and this is just the tip of the iceberg.

    Limitation of Classical Computing

    Classical computing has come very far in the previous decades. Moore’s law states that the computing power doubles every two years. More specifically, the number of transistors on a chip or processor doubles every two years. But in recent decades, as shown below, the increase is not very steep.

    After a certain point, there are only so many transistors you can fit on an Integrated Circuit (IC). We will certainly encounter the limit sooner rather than later. With the amount of data that we generate every day, it is important to have the resources to process and store it. Thus, although modern computing has taken us so far, we have to devise and discover alternate technologies so when the time does come when we cannot fit any more transistors on our processors, we have alternative approaches.

    How Quantum can solve the limitations of Classical Computing

    This is where Quantum Computing comes in. Quantum Computing is not the only alternative technology scientists are exploring but it is among the more promising candidates. While Quantum Computers may never fully replace classical computers, computer scientists have proved that all the operations, or shall we say, programs that can be run on a classical computer can also run on a Quantum Computer. But where efficiency is the name of the game, it is not enough for a Quantum Computer to run programs as efficiently as a classical computer. We need Quantum Computers to significantly outperform Classical computers to show their definitive utility. This is what we call “Quantum Supremacy”.

    Google’s 53 qubits Sycamore Processor first demonstrated Quantum supremacy in 2019. It completed a task that takes a classical computer about 10,000 years to complete in mere 200 seconds. We are officially in the beginnings of a Quantum Age and there is still a lot of work to be done.

  • Introduction to Quantum Computing

    Introduction to Quantum Computing

    Preface – This post is part of the Quantum Computing series.

    Introduction

    Modern Computing devices come in various shapes and forms. From smart-watches to GPS systems, from mobile phones to supercomputers, from space probes to drones, all these devices operate on the same underlying machinery which is that of a classical computer. The fundamental operation of a classical computer relies on encoding information as a string of binary characters. A single character-the smallest chunk of information-is called a bit which can either be 0 or 1. As modern computers are digital, 0 represents the low voltage and 1 represents high voltage. This information is stored in the millions of transistors present in your processor which then carries out operations on this information. 

    The reason we are talking about modern computers and their working principles is that we want to highlight the fact that all modern computing devices work on the same fundamental principle. Quantum Computers on the other hand do not operate on these principles. They are fundamentally different than their classical counterparts. The way we represent and process information in a Quantum Computer relies heavily on exploiting the principles of “Quantum mechanics”. In this and the upcoming modules, we will learn these principles and ways to exploit said principles to perform Quantum Computation.   

    Advantages of Quantum Computing  

    Now, before we explore the more technical workings of a Quantum Computer in detail, we would like to cover the reason we are interested in building one in the first place! Exploring these reasons themselves will give us a good intuition on what a Quantum Computer should be able to accomplish. In this section, we will discuss these reasons in teams of both their advantages and disadvantages.

    Basically, there are several problems, that are hard to solve on classical computers. Let’s take the example of one such problem. 

    Suppose you have to plan a small dinner party. Your task is to find the best seating arrangement. Let’s take a small number, suppose you have 7 guests. You have to plan a seating arrangement such that no opposing parties sit near each other and more importantly, make sure that every person is sitting next to a like-minded individual. For simplicity suppose the table is round. Now, if you do the math then there are 6x….x1 = 6! = 720 ways of seating 7 people around the table. Let’s say that your atheist friend cannot sit next to your very religious grandma. So, the number of possibilities comes down to 6! – 2×5! = 480. 

    Now, you are faced with the daunting task of analyzing all the 480 combinations and finding the best one. It is not a big deal for your personal computer to analyze 480 combinations. You’ll probably find the best arrangement in a matter of seconds if you write a good enough program. But what if instead of 7 guests, you have to seat 10 guests. The number of possibilities will increase to 282240 which will take more than a couple of seconds for your computer to analyze. As the number of guests increases, the number of possibilities increases exponentially which will take more time for your computer to process. This is what Computer Scientists call “Exponential Time Complexity” which is obviously not a good thing when you want to solve a problem like this. 

    The problem which we described above is called an Optimization Problem. It simply means that out of all the possible combinations of states, we want to find the state which solves the problem optimally. As we already discussed, Optimization Problems are hard to solve on a Classical Computer. That, however, does not mean that they cannot be solved. Computer Scientists have developed algorithms to solve these types of problems where they find a good enough solution (if not the best) in a reasonable amount of time. But that does not mean we cannot do better. 

    It is theoretically proven that Quantum Computers can solve certain problems much more efficiently than classical computers. For instance, Shor’s algorithm can factorize large numbers into their prime factors in Polynomial-time rather than the Exponential-time taken by a classical computer. This was not exactly good news when Peter Shor discovered it in 1994. Turns out, our modern cryptosystem relies on this inefficiency of classical computers and although we are very far away from developing a large-scale Quantum Computer which can run Shor’s Algorithm, it is still a problem that needs to be addressed before we are anywhere near doing so. 

    The last thing we want to talk about in this section is simulations, Quantum Mechanical Simulations to be precise. The theory of Quantum Mechanics proves that the world is Quantum Mechanical in nature. To make any reasonable predictions about any natural phenomena, we should be able to simulate those phenomena on a machine. Simulating Quantum Mechanical systems is again pretty difficult in terms of both time and space on a classical machine. In the 1980s theoretical physicist, Richard Feynman proposed the idea to address this problem by developing a Quantum Machine to simulate Quantum Systems. He was one of the first people to propose the idea of developing a Quantum Computer.

    What is Quantum Computing?

    The textbook definition of Quantum Computing goes something like this – ‘Quantum Computing is defined as an area of computing that harnesses the principles of “Quantum Mechanics” to perform computations. The devices used to perform Quantum Computation are called Quantum Computers’. Sounds simple, right? It is pretty obvious as far as textbook definitions go. 

     As we explained in the previous sections, the “Quantum” nature of a Quantum Computer allows us to perform operations in a different way than classical computers. The basic Quantum mechanical principles that allow such huge advantages are: Superposition, Entanglement, and Interference. 

    The principle of Superposition explains the ability of a Quantum bit (qubit) to be in a combination of multiple states at the same time until a measurement is made, in which case the superposition collapses into a single state.

    Two qubits can be Entangled which allows them to change states in the instance one of the qubits changes its state.

    Interference is a relatively easier concept to grasp than the previous two. Various qubits Interfering with each other can either reinforce or diminish each of their states. Think of each quantum particle as a wave function, which constructively or destructively interferes with each other.

    This is a highly condensed version of these principles that aims to provide an overview as opposed to conceptual understanding. We will talk about these principles in a lot more detail in the upcoming modules.

    Applications of Quantum Computing

    Now that we have a basic sketch, in very broad strokes of what Quantum Computing is all about, it’s time that we discuss how scientists are convincing governments and investors of why they should allow them to spend large sums of money on this technology. And let me tell you, this is not an easy task. There’s a reason why Defence and weapons development have a lot more funding than fields like theoretical physics. So, here’s why they think all that money is worth it.

    Cryptography: We discussed Shor’s Algorithm in the previous section and how it is a threat to modern cryptosystems. This has opened up a whole new field called Quantum Cryptography to address this threat and develop Cryptographic Protocols relevant for a post-quantum world. One such notable protocol is Quantum Key Distribution (QKD). QKD allows two users to exchange keys over a Quantum Channel such that any third-party interception will result in discarding the keys, starting the process all over again. 

    Artificial Intelligence: Quantum Machine Learning (QML) can revolutionize the field of Artificial Intelligence. AI requires some heavy number crunching for the models to learn and make good predictions. Quantum Computers can potentially do this in significantly less time than a classical computer. QML is an up-and-coming research field that aims to develop various “Quantum” Algorithms to efficiently realize an AI model.

    Drug development: Drug Development requires analyzing the structure and properties of various chemical compounds and molecules in order to develop better medications. These compounds are made up of molecules. Molecules are made up of atoms which are in turn made up of subatomic particles which are Quantum mechanical in nature. As we discussed earlier, Quantum Systems can be simulated much more efficiently on a Quantum Computer than they can on a classical one. Quantum computers have already successfully simulated simple molecules and are predicted to simulate much more complex chemicals in time. Thus, promising synthesis of better, more efficient drugs against known and unknown diseases.