1. Home
  2. Explore
  3. Computer Science
  4. Quantum Computers and Cryptography

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Quantum Computers and Cryptography

Quantum Computing: Principles, Hardware, Applications, and Security

Classical computing and the limits of miniaturization

A classical computer represents and processes information using bits, each of which has one of two values: 000 or 111. At the hardware level, these values are encoded using physical states, such as different voltage levels in circuits.

The basic electronic component used to control these states is the transistor. It acts as a switch: depending on its input, it allows or prevents electrical signals from passing through a circuit. The 000 and 111 labels are conventions for representing these physical states; they do not have an inherent meaning on their own.

Computer systems are built in layers:

  1. Transistors implement simple logic operations.

  2. Logic gates combine these operations.

  3. Groups of gates form modules that carry out tasks such as arithmetic.

  4. Many modules work together to execute programs.

For example, an AND gate outputs 111 only when all its inputs are 111. By combining logic gates, computers can perform arithmetic and, ultimately, general-purpose computation.

For decades, transistors have become smaller while computers have become more powerful. However, continued miniaturization brings physical challenges. When components approach the scale of individual atoms, the behavior of electrons can no longer always be treated using ordinary, predictable circuit models.

One such effect is quantum tunneling: a particle can sometimes pass through a barrier that classical physics says it should not cross. In very small electronic components, tunneling can cause unwanted current to pass through barriers that are meant to block it. This can make conventional transistor designs unreliable or difficult to scale further.


Qubits and quantum states

A qubit is the basic unit of quantum information. Like a classical bit, a qubit has two designated basis states, commonly labeled ∣0⟩|0\rangle∣0⟩ and ∣1⟩|1\rangle∣1⟩. Unlike a classical bit, however, a qubit can exist in a superposition of these states:

∣ψ⟩=α∣0⟩+β∣1⟩|\psi\rangle = \alpha|0\rangle + \beta|1\rangle∣ψ⟩=α∣0⟩+β∣1⟩

Here, α\alphaα and β\betaβ are probability amplitudes. When the qubit is measured, the probability of observing ∣0⟩|0\rangle∣0⟩ is ∣α∣2|\alpha|^2∣α∣2, and the probability of observing ∣1⟩|1\rangle∣1⟩ is ∣β∣2|\beta|^2∣β∣2. These probabilities sum to 111.

Superposition does not mean that a qubit is simply a classical bit whose value is hidden, nor does it mean that measurement reveals both values at once. Measurement produces one definite outcome. For an individual qubit, that outcome is probabilistic.

A qubit can be implemented using different physical systems, provided the system has two controllable quantum states. Possible examples include:

  • The spin states of an electron or an atomic nucleus.

  • The polarization states of a photon, such as horizontal and vertical polarization.

  • The states of a superconducting electrical circuit.

Spin is an intrinsic quantum property of particles, associated with angular momentum. It is often described as “up” or “down” relative to a chosen direction, but it should not be understood literally as a tiny object spinning like a ball.

Quantum states are fragile. Interaction with the environment can disturb a qubit and destroy the carefully controlled superposition. This loss of quantum behavior is called decoherence and is one of the central engineering challenges in quantum computing.


Quantum gates, measurement, and entanglement

A quantum computation uses qubits, applies operations to them, and then measures them. The operations are performed using quantum gates, which change the qubits’ states. Unlike ordinary logic gates, ideal quantum gates are reversible and preserve the mathematical structure of quantum states.

A simplified quantum-computing process is:

  1. Prepare qubits in initial states.

  2. Apply quantum gates to change their states.

  3. Use interactions between qubits to create correlations, including entanglement.

  4. Measure the qubits to obtain classical results.

A measurement converts a quantum state into a definite classical outcome, such as a sequence of zeros and ones. Because measurement gives only one outcome, a quantum computer cannot simply reveal every possible result encoded in a superposition.

Entanglement is a quantum relationship between two or more systems in which their states are correlated in a way that cannot be explained as independent states. Measuring one entangled system can provide information about the correlations with another, even when the systems are far apart. Entanglement does not allow usable information to be sent instantaneously faster than light.

Superposition and entanglement can help quantum algorithms exploit interference. The algorithm is designed so that amplitudes associated with unwanted outcomes tend to cancel, while amplitudes associated with useful outcomes become more likely. The benefit depends on finding an algorithm that uses these effects effectively.

A quantum computer does not try every answer and then read all the answers at once. Its advantage comes from carefully manipulating quantum amplitudes so that useful outcomes become more probable.


What quantum computers can and cannot do

With nnn classical bits, a computer has one particular configuration at a time out of 2n2^n2n possible configurations. A register of nnn qubits can be in a superposition involving amplitudes for all 2n2^n2n basis configurations. For example, four qubits have 24=162^4 = 1624=16 basis configurations.

This is sometimes described as quantum parallelism, but it can be misleading. A measurement of the register still produces only one result. The computer cannot directly inspect all 2n2^n2n amplitudes. Quantum algorithms must use gates and interference to extract useful information from the state.

Quantum computers are therefore not automatically faster for every task. They are expected to be useful for particular problems for which quantum algorithms provide an advantage. They are not expected to replace ordinary computers for routine activities such as browsing the web or running most everyday software.

Complexity theory provides one way to discuss the limits of possible speedups. The class NP consists of problems for which a proposed solution can be checked efficiently. Factoring has efficiently verifiable answers, but it is not known to be NP-complete. Quantum computers have not been shown to efficiently solve every problem in NP, and quantum speedups are not restricted to factoring alone.


Important quantum algorithms and possible uses

Shor’s algorithm and factoring

Shor’s algorithm, introduced in the 1990s, provides a quantum method for factoring large integers with dramatically better scaling than the best known classical factoring methods. This matters because widely used public-key cryptographic systems, including RSA, rely on the difficulty of factoring large numbers.

Shor’s algorithm can also solve the discrete logarithm problem efficiently, which threatens elliptic-curve cryptography. A sufficiently large, fault-tolerant quantum computer could therefore undermine important forms of public-key security.

This is a theoretical capability, not evidence that today’s small, noisy quantum devices can break widely used encryption. Running Shor’s algorithm at cryptographically relevant sizes requires a large number of reliable logical qubits, along with substantial error correction.

Searching unstructured databases

Grover’s algorithm can search an unstructured set of NNN possibilities using roughly N\sqrt{N}N​ queries, rather than the NNN queries required by a straightforward classical search. This is a quadratic speedup, not an exponential one. For sufficiently large search spaces, the reduction can still be significant.

Quantum simulation

Quantum systems are difficult to simulate accurately on classical computers because their state spaces can grow rapidly with system size. A programmable quantum computer may be able to model certain quantum systems more naturally.

Potential areas of interest include:

  • Molecules and chemical reactions.

  • Materials with complex quantum properties.

  • Some biological or chemical structures.

  • New approaches to understanding physical systems.

Quantum simulation is considered one of the promising applications of quantum technology, although practical impact depends on hardware quality and the particular scientific problem.


Quantum hardware approaches

A quantum computer requires physical qubits that can be prepared, controlled, connected, and measured reliably. Different hardware approaches make different trade-offs.

Superconducting circuits

Superconducting quantum computers use tiny circuits made from superconducting materials. These circuits can be controlled with electrical signals, including microwave pulses, and have been used by several major research groups.

Their challenges include short-lived quantum states, noise, manufacturing variation, and the difficulty of scaling up while maintaining accurate operations. The stability time of a qubit is only one measure of quality: useful computation also depends on gate accuracy, connectivity, measurement quality, and the effectiveness of error correction.

Silicon-based qubits

Silicon is already central to the semiconductor industry, which has extensive manufacturing expertise and infrastructure. Some proposed quantum-computing approaches use individual atoms or other structures in silicon to encode qubits. Electron and nuclear spins associated with atoms such as phosphorus can be used as quantum states.

One approach uses electric nuclear resonance: electric fields influence nuclear-spin transitions through interactions within the atom. If such techniques can control qubits accurately and be manufactured at scale, existing semiconductor knowledge could help with production. However, adapting conventional chip manufacturing to create and control quantum devices is still a difficult engineering task.

Research programs in Australia have explored silicon-based qubits and atomically precise devices. These efforts illustrate a possible path toward integrating quantum components with semiconductor fabrication, but their future success should not be treated as certain.

Atomically precise devices and quantum simulators

Research has demonstrated the fabrication of extremely small electronic structures, including transistors made using individual atoms and atomically precise circuits. A fixed quantum device can also be designed to simulate a particular physical system. Such a quantum simulator may model one chosen system but is not necessarily a general-purpose, reprogrammable quantum computer.

The distinction is important:

  • Quantum simulator: built or configured to model a particular quantum system or class of systems.

  • General-purpose quantum computer: programmable to run different quantum algorithms.

Atomically precise fabrication offers intriguing possibilities, but constructing complex, reliable circuits one atom at a time presents demanding challenges.


Errors and quantum error correction

Qubits are vulnerable to noise and environmental disturbance. Errors can occur during state preparation, gate operations, storage, and measurement. A quantum computer must keep these errors under control across a long sequence of operations.

Classical computers can often manage errors by copying bits or storing redundant versions. Quantum information cannot be copied arbitrarily: the no-cloning theorem rules out making a perfect copy of an unknown quantum state.

Quantum error correction instead encodes one logical qubit across multiple physical qubits. By measuring carefully chosen properties of the larger system, it can detect error information without directly measuring and destroying the encoded quantum data. The goal is to identify and correct errors while preserving the computation.

A logical qubit is an error-protected unit formed from many physical qubits. It is more useful for extended calculations than an individual physical qubit, but it requires overhead: many physical components may be needed to produce one reliable logical qubit.

Measures such as gate fidelity describe how closely a physical operation matches its intended operation. High fidelity is important, but it does not alone guarantee a useful, scalable computer. Error rates, error-correction overhead, connectivity, qubit stability, and the size of the system all matter.


Cryptography and the quantum threat

Why public-key cryptography is vulnerable

Many public-key systems make it easy to use a public key to encrypt or verify information but computationally difficult to derive the corresponding private key. For RSA, the relevant difficulty is connected to factoring. For elliptic-curve cryptography, it is connected to the discrete logarithm problem.

Shor’s algorithm changes the long-term security outlook for these systems. However, a quantum computer must be sufficiently large and reliable to run the algorithm with error correction. Estimates of required qubit counts depend on assumptions about the algorithm, hardware, and acceptable runtime; a simple physical-qubit count is not enough to establish that a system can break real-world cryptography.

Risks to cryptocurrency

Cryptocurrencies and other systems that use public-key signatures could be vulnerable if a sufficiently capable quantum computer could derive a private key from an exposed public key. The practical risk depends on the protocol, how keys are used, whether public keys have been revealed, and whether a user can move funds to quantum-resistant addresses in time.

A quantum computer would not automatically break every cryptocurrency feature or every cryptographic method. The concern is specifically about cryptographic components that rely on problems made tractable by quantum algorithms, especially public-key signatures and key-exchange mechanisms.

Harvest now, decrypt later

An attacker can store encrypted communications today and attempt to decrypt them in the future if a capable quantum computer becomes available. This is often called a “harvest now, decrypt later” risk. It matters most for information that must remain confidential for many years, such as sensitive government, health, business, or personal data.

Preparing before large-scale quantum computers exist can be important because replacing cryptography across software, services, and infrastructure takes time.

Symmetric encryption and quantum search

Quantum computers do not affect all cryptography in the same way. Grover’s algorithm can provide a quadratic speedup for brute-force search against symmetric keys. Increasing key sizes can help compensate for this kind of speedup. This is different from Shor’s algorithm, which presents a much more serious threat to widely used RSA and elliptic-curve public-key systems.


Post-quantum cryptography and quantum cryptography

Post-quantum cryptography uses ordinary classical computers and mathematical algorithms designed to resist attacks from both classical and known quantum algorithms. It does not require quantum hardware. Its security depends on mathematical problems believed to remain difficult even for quantum computers.

Quantum cryptography, by contrast, uses quantum-mechanical properties as part of a cryptographic system. Quantum key distribution, for example, can use changes caused by measurement to help detect interception. It requires suitable quantum communication equipment and is fundamentally different from post-quantum cryptography.

Post-quantum algorithms are designed to be integrated into conventional software and networks. They can protect data without requiring the communicating parties to possess quantum computers.

The National Institute of Standards and Technology (NIST) has standardized or selected several post-quantum algorithms. Important names include:

  • ML-KEM, based on CRYSTALS-Kyber, for key encapsulation.

  • ML-DSA, based on CRYSTALS-Dilithium, for digital signatures.

  • SLH-DSA, based on SPHINCS+, for digital signatures.

  • FALCON, a lattice-based signature scheme selected for standardization.

Algorithm names and standardization status can change as standards are finalized and updated. Organizations adopting post-quantum cryptography need to consider implementation quality, compatibility, and migration plans, not only the algorithm name.


Preparing cryptographic systems for change

Replacing cryptography in a large organization is a complex process. Encryption is embedded in software, devices, networks, certificates, and communication protocols. Systems must be inventoried, tested, and updated without disrupting essential services.

A migration may involve:

  1. Identifying where public-key cryptography is used.

  2. Determining which data needs long-term confidentiality.

  3. Selecting standardized post-quantum algorithms appropriate to each use.

  4. Updating protocols, software, and hardware.

  5. Testing security, performance, and compatibility.

  6. Planning for future algorithm changes if weaknesses are discovered.

The transition can take years, especially for large enterprises. This is why long-lived sensitive data may need protection before a large fault-tolerant quantum computer becomes available.

A VPN can protect traffic between a device and the VPN service, but it does not automatically protect all data end to end. Its security depends on its protocols, implementation, and the services being accessed. Post-quantum protection is one component of a broader security strategy, not a guarantee against every kind of attack.


Key distinctions to remember

  • A classical bit has a definite value, 000 or 111; a qubit can be in a superposition of basis states.

  • Superposition does not allow all possible answers to be read out at once.

  • Entanglement creates strong quantum correlations but does not enable faster-than-light communication.

  • A quantum computer’s advantage is problem-specific; it is not simply a faster replacement for every computer.

  • Quantum error correction encodes logical information across multiple physical qubits because unknown quantum states cannot be copied.

  • Post-quantum cryptography runs on ordinary computers and is designed to resist quantum attacks; quantum cryptography uses quantum hardware and phenomena.

  • Quantum computers threaten some public-key cryptographic systems much more directly than they threaten symmetric encryption.

  • The practical timing of cryptographically powerful quantum computers is uncertain, so forecasts should be treated cautiously while long-term security preparation proceeds.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent