Explore quantum hero banner

Explore quantum

The quantum computing stack

A “computing stack” is a conceptual description of the different layers of a computing system, from the physical implementation of computer chips, up through the control and instruction layers used to control and program the computer, all the way to the user interface that enables people to interact with the system. In quantum computing, the computing stack is analogous to its classical counterpart. The quantum computing stack describes the different layers of a quantum system, from the elementary particles used to store and compute information (the qubits), to the physical and logical systems that control and manipulate the qubits, all the way to the application layer, which includes high-level programming languages and algorithms used to program the quantum computer.

Programming a computer, whether classical or quantum, encompasses its own “sub-stack” of layers that typically includes a programming language layer used to write algorithms and computer programs, as well as a compiler / interpreter layer that converts the resulting source code into machine-readable instructions. Java, Python, C++, and JavaScript are examples of programming languages. It’s important to note that an algorithm, which is a step-by-step instruction set that solves a specific problem, is a theoretical concept and is not tied to a particular programming language or implementation. Rather, algorithms are implemented in a specific programming language and computer program. A computer program is a more general concept—it is a set of concrete instructions that implements algorithms and other general logic to solve a particular task or to generate a software application.

 

quantum computer stack graphic

Layers of the quantum computing stack

A quantum computing stack is typically comprised of the following layers:

  1. Hardware: The physical devices and systems that implement quantum computing, such as topological qubits, superconducting qubits, trapped ions, or photonic circuits.

  2. Physical qubits: The individual quantum bits that are the fundamental building blocks of a quantum computer. Physical qubits are subject to errors and decoherence, which can cause quantum information to be lost or corrupted.

  3. Quantum Error Correction: The set of techniques and protocols used to detect and correct errors in quantum information that arise from noise and decoherence in physical qubits. Quantum error correction typically involves encoding quantum information redundantly across multiple physical qubits and using error-detection and correction algorithms to recover the original quantum state.

  4. Logical qubits (ISA): Logical qubits are an abstraction of physical qubits that provide a more robust and reliable representation of quantum information. Logical qubits are implemented using quantum error correction and other techniques to reduce errors and improve coherence. The instruction set architecture (ISA) defines the set of operations and instructions that can be performed on logical qubits.

  5. Quantum Intermediate Representation (QIR): Intermediate representations are often used in classical computing as an intermediary step in the conversion of instructions from source code to machine language. Similarly, in quantum computing a QIR is used to describe quantum algorithms and circuits in a form that can be implemented on physical quantum hardware. Quantum Intermediate Representations are typically designed to be compiler friendly and hardware-agnostic and to provide a standard interface between quantum algorithms and various quantum hardware platforms.

  6. Quantum algorithm: A set of instructions or operations that can be executed on a quantum computer to solve a specific problem or perform a specific task. Quantum algorithms are designed to take advantage of the unique properties of quantum mechanics – such as superposition, entanglement, and interference  – to perform computations that are difficult or impossible for classical computers. Some examples of quantum algorithms include Shor's algorithm for factoring large integers, quantum simulation, or the Group Isomorphism algorithm.

Although the layers of the quantum computing stack, as described above, are very analogous to classical computing, there are several important implementation differences. The first, of course, is that a quantum computer uses elementary particles such as ions or photons to hold information, rather than voltages as used in classical computing. Another important difference is the way quantum computers handle errors and noise. Classical computing systems are designed to be highly reliable and deterministic. In contrast, quantum computing systems are inherently noisy and error-prone due to the fragility of qubits and the sensitivity of quantum states to environmental disturbances. As a result, quantum computing stacks have error rates orders of magnitude greater than classical systems and therefore require specialized techniques and algorithms for error correction and fault tolerance. This can add significant overhead and complexity to quantum computations. Despite these challenges, quantum computing has the potential to revolutionize a wide range of fields, from cryptography and optimization to materials science and drug discovery.

 

 

Suggested Topics

The qubit

Learn how qubits use the quantum-mechanical phenomena of superposition and entanglement to power quantum computations

Types of qubits

Learn about different qubit implementations, from super conducting, to ion trap, to topological qubits

Topological qubits

Microsoft believes topological qubits are the key to unlocking scaled quantum computing. Learn more about our unique approach

Quantum math

Learn about the mathematics behind quantum computing, and how it is used to describe the behavior of qubits and quantum gates