<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sadia Rahman on Medium]]></title>
        <description><![CDATA[Stories by Sadia Rahman on Medium]]></description>
        <link>https://medium.com/@sadiarahman.ta.09?source=rss-341511949b4c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*gSltI9OkPLAkEz1S</url>
            <title>Stories by Sadia Rahman on Medium</title>
            <link>https://medium.com/@sadiarahman.ta.09?source=rss-341511949b4c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 21:53:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sadiarahman.ta.09/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Can three qubits protect one? Simulating the Quantum Repetition Code]]></title>
            <link>https://medium.com/@sadiarahman.ta.09/can-three-qubits-protect-one-simulating-the-quantum-repetition-code-eb125d51e158?source=rss-341511949b4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb125d51e158</guid>
            <category><![CDATA[logical-qubits]]></category>
            <category><![CDATA[quantum-error-correction]]></category>
            <category><![CDATA[logical-error]]></category>
            <category><![CDATA[repetition-code]]></category>
            <category><![CDATA[quantum-computing]]></category>
            <dc:creator><![CDATA[Sadia Rahman]]></dc:creator>
            <pubDate>Mon, 30 Nov 2026 01:29:45 GMT</pubDate>
            <atom:updated>2026-11-30T01:35:27.201Z</atom:updated>
            <content:encoded><![CDATA[<p>Unlike classical bits, which represent either 0 or 1, quantum bits, or qubits, can exist in a superposition of both states. Through quantum phenomena such as entanglement and interference, quantum computers can process information in ways that classical computers cannot.</p><p>However, qubits are extremely sensitive to their surroundings. Heat, electromagnetic fields, vibrations, and imperfect control pulses can disturb their states, introducing errors that threaten the information being processed. This makes maintaining reliable quantum computation a significant challenge.</p><p>To address this problem, scientists use quantum error correction (QEC). Instead of storing information in a single physical qubit, QEC encodes it across multiple physical qubits to form a <em>logical qubit</em>. By measuring relationships between these physical qubits, errors can be detected and corrected without directly measuring the encoded quantum information.</p><p>One type of error that quantum error correction can address is a <em>bit-flip error</em>. Similar to a classical bit switching from 0 to 1 or from 1 to 0, a bit-flip error occurs when a qubit’s state is unintentionally reversed. In quantum mechanics, this operation is represented by the Pauli-X gate, which acts like a classical NOT gate.</p><h4><strong>But how can a computer identify which qubit has flipped without directly measuring its quantum information?</strong></h4><p>One approach is the<em> three-qubit bit-flip repetition code.</em> In this method, one logical qubit is encoded across three physical qubits. Rather than relying on a single qubit, the system uses parity measurements to identify inconsistencies between the three qubits. If one qubit experiences a bit-flip error, the resulting measurement pattern, known as a <em>syndrome</em>, can identify the affected qubit so that the error can be corrected.</p><p>This raises an important question: how effective is this redundancy at protecting quantum information, and what happens as the probability of physical errors increases?</p><p>To investigate this, I developed a Qiskit simulation of the three-qubit bit-flip repetition code. The project examines its ability to recover quantum information under different error conditions, beginning with individual error patterns and then testing a range of physical bit-flip probabilities. The simulated results are compared against the theoretical logical error rate to evaluate how effectively the code suppresses errors</p><p>Alongside the Qiskit simulation, I built an interactive simulator that lets you carry out the error-correction process by hand: encode a qubit, choose where a bit flip strikes, predict the parity checks, apply the correcting gate, and see what happens. Open it now at this <a href="https://joyful-kangaroo-4b7de9.netlify.app/">link</a> and play with it as you read. Try flipping one qubit, then two, and see for yourself where the code succeeds and where it fails.</p><h3>2. The Theory Behind The Three-Qubit Repetition Code</h3><p>A logical qubit α|0⟩ + β|1⟩ on qubit 0 is encoded into three physical qubits by two CNOT gates, each controlled by qubit 0:</p><p>α|0⟩ + β|1⟩ → α|000⟩ + β|111⟩</p><p>This is not three copies of the original state. The no-cloning theorem forbids copying an unknown quantum state, and measuring a qubit to check it would collapse its superposition. Instead, the encoded state is a single entangled state in which the amplitudes α and β are stored in the relationship among the three qubits. This three-qubit construction is a simple case of the redundancy-based approach that Shor first showed could protect quantum information.</p><p>Suppose one qubit has flipped. Measuring the data qubits directly would collapse the state, so the code instead measures two parities: whether qubits 0 and 1 agree, and whether qubits 1 and 2 agree. Each parity is computed onto an ancilla qubit with two CNOT gates. In both branches of the superposition (000 and 111) every pair agrees, so a parity check gives the same answer in both branches and reveals nothing about α and β. The two ancilla bits form the <em>syndrome:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*9p5epxyRTVkIC6Wd9I20jg.png" /></figure><p><strong>Correction and decoding:</strong> The syndrome identifies the flipped qubit, and an X gate flips it back. Running the encoding CNOTs in reverse then returns the logical state to qubit 0.</p><p><strong>What happens when more than one qubit flips?</strong></p><p>The code can only fix one mistake at a time. Imagine qubits 0 and 1 both flip. The first parity check (qubits 0 and 1) says they agree, because both are flipped and so still match. The second check (qubits 1 and 2) says they disagree. That is exactly the pattern a single flip on qubit 2 would produce, so the code concludes that qubit 2 is the problem and flips it. Now all three qubits hold the opposite of what they should, giving α|111⟩ + β|000⟩. This is still a perfectly valid encoded state, so every parity check passes and the code has no way of knowing anything went wrong. The stored information has been swapped (every 0 has become a 1 and every 1 a 0). This is called a <strong><em>logical error: </em></strong>the information itself is wrong, even though the code believes it is correct.</p><p><strong>How often does this happen?</strong></p><p>Suppose each physical qubit has a chance, which I call p, of being flipped by noise. For example, p = 0.01 means a 1% chance, or about one flip in every hundred qubits. The code only fails when at least two of the three qubits flip. There are three ways for exactly two to flip (qubits 0 and 1, qubits 0 and 2, or qubits 1 and 2), and each has probability p × p × (1 − p), where the last factor is the chance that the remaining qubit stays fine. There is also a small chance that all three flip, which is p × p × p. Adding these up gives the logical error rate, the probability that the protected qubit ends up wrong:</p><p>3 × p² × (1 − p) + p³ = 3p² − 2p³</p><p>This is the theoretical logical error rate of a 3 qubit bit flip repetition code:</p><p>The important part of the formula is the p². Here p is the chance that one qubit flips. Say p = 0.01, so a qubit flips about 1 time in 100. For the code to fail, two qubits have to flip at the same time. The chance of two separate things both happening is their chances multiplied together: 0.01 × 0.01 = 0.0001, which is 1 time in 10,000. That multiplication is the p² (p times p).</p><p>Needing two unlikely things to happen together makes the result far less likely than either one alone.</p><p>The 3 in the formula comes from the three different pairs of qubits that could flip: qubits 0 and 1, qubits 0 and 2, or qubits 1 and 2. Each pair has a 1-in-10,000 chance, so 3 × 0.0001 = 0.0003, which is about 3 in 10,000, or 0.03%. The full formula also subtracts a tiny correction, which is too small to matter at p = 0.01.</p><p>Putting the two cases side by side, an unprotected qubit fails whenever its one qubit flips, which is 1 time in 100 (1%). The protected qubit fails only when two flip, about 3 times in 10,000 (0.03%). That is roughly 33 times less often, which matches the 33.2× improvement measured in the simulation (Section 4).</p><p>The size of this gain depends on how small p is to begin with:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*JAGUrTfMk2IUhD_d16YkDA.png" /></figure><p>Each time the qubits become 10 times more reliable, the protected failure rate becomes about 100 times smaller. This is the “quadratic” effect that appears in the log-log graph in Section 4. So the code does not remove errors. It makes a failure require two unlikely events (two bit flips) at once.</p><p>However, there is a limit. The code works like a vote. It looks at the three qubits and trusts whatever the majority says, which is why one wrong qubit gets outvoted by the other two.</p><p>When p is small, each qubit is almost always right, so it is very rare for two of them to be wrong at once and the majority can be trusted. When p reaches 0.5, each qubit is wrong half the time, which makes it no better than a coin toss.</p><p>Above p = 0.5, each qubit is more likely to be wrong than right, so the vote starts to point the wrong way. At p = 0.6, for example, a single qubit fails 60% of the time, but the majority of three fails 64.8% of the time. The simulation shows the same thing: 64.7% for the protected qubit against 60.1% for the unprotected one (Table 2). Adding more qubits to an unreliable group only gives the errors more chances to win the vote.</p><p>The lesson is that redundancy only helps if each qubit is already more likely to be right than wrong. In this idealized model that means p below 0.5. Real quantum computers have to meet a much stricter standard, because their gates and measurements are also imperfect (see Limitations).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uQlHoHAIEmx5L1mu6uoJ9w.png" /><figcaption><strong>Figure 1.</strong> Predicted logical error probability for the three-qubit code compared with an unprotected qubit, on linear and log-log axes. The code only helps below p = 0.5.</figcaption></figure><h3>3. Testing the Theory Through Simulation</h3><p>To evaluate the code from two different perspectives, I conducted two experiments: the first tested all eight possible bit-flip patterns to determine which errors the code could correct, while the second introduced probabilistic noise at different physical error rates to measure how frequently the code failed.</p><p>All of the simulations were written in Python and run in Google Colab, a free notebook environment that runs in a web browser. The circuits were built with Qiskit, an open-source toolkit from IBM for building quantum circuits and simulating how they behave on an ordinary computer. For the experiment that includes random noise I used Qiskit Aer, Qiskit’s simulator, which can imitate a noisy quantum computer by randomly applying errors while a circuit runs. No real quantum hardware was used, so everything in this article was simulated.</p><p>The circuit uses five qubits (Figure 2). Qubits 0, 1 and 2 are the <em>data qubits</em> that hold the encoded information. Qubits 3 and 4 are <em>ancilla qubits,</em> helper qubits that start at 0 and are used only to record the results of the two parity checks, so the data qubits never have to be measured. The correction is then applied with Toffoli gates, which flip a data qubit only when the ancillas show the syndrome that matches it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JWpNc7RNRDa70e8x4PpmyQ.png" /><figcaption><strong>Figure 2.</strong> The simulated circuit: prepare and encode, inject an error, compute the syndrome onto two ancillas, correct with Toffoli gates, and decode.</figcaption></figure><p><strong>Experiment 1: Every possible error pattern</strong></p><p>The first experiment asks a simple question: does the code fix a single bit flip, and what happens when more than one qubit flips? With three data qubits there are only eight possible patterns of flips: no flips, one qubit flipped (3 patterns), two qubits flipped (3 patterns), or all three flipped. The experiment tries every one of them.</p><p>For each pattern, the circuit does the following:</p><ol><li>Prepare a test qubit and encode it across the three data qubits.</li><li>Flip the chosen qubits to imitate noise.</li><li>Run the parity checks to get the syndrome, and apply the correction the syndrome calls for.</li><li>Decode the result back onto a single qubit.</li></ol><p>The final qubit is then compared with the test qubit the experiment started with. The comparison is a number called <em>fidelity,</em> which runs from 0 to 1. A fidelity of 1 means the final qubit is identical to the original, so the information survived, and lower values mean it was damaged.</p><p>This experiment was run in a Google Colab notebook using Qiskit’s statevector tool. A statevector is the complete description of the quantum state of all five qubits, which Qiskit can calculate exactly on an ordinary computer. Nothing random is involved, so each pattern gives exactly one answer, and no quantum hardware was needed. The test qubit was a mixture of 0 and 1 (set with a rotation angle of θ = 1.0), so that a failure would show up clearly in the fidelity.</p><p><strong>Experiment 2: How the failure rate changes with noise.</strong></p><p>The second experiment measures how often the code fails when the qubits are noisy, across a range of noise levels. It was run in the same Colab notebook, this time using Qiskit Aer, a simulator that applies random errors to the qubits while the circuit runs, so again no quantum hardware was needed. Each data qubit went through a storage step in which it is flipped with probability p, and the values tested were p = 0.01, 0.02, 0.05, 0.1, 0.2, 0.3, 0.4, 0.5 and 0.6, from very reliable qubits to very unreliable ones. After the noise, the circuit ran the parity checks, corrected the qubit, decoded it, and measured the result. The qubit started in the state 0, so reading a 1 means the code failed, which is a logical error.</p><p>Because the errors are random, a single run tells you almost nothing. Each circuit was therefore run 200,000 times, with each run called a <em>shot</em>, and the logical error rate is the fraction of shots that ended in failure. As a comparison, the same experiment was run on a single qubit with no protection.</p><p>Even 200,000 shots will not give the exact answer, for the same reason that tossing a fair coin 100 times will not always give exactly 50 heads. There is always a little random variation. To show how large that variation is, each result is reported with an error bar, written ± σ (σ is the Greek letter sigma). For example, a result of 0.00029 ± 0.00004 means the true value is likely between 0.00025 and 0.00033. The more shots there are, the smaller the variation, which is why so many shots were used. (σ is calculated from the measured error rate a and the number of shots N as the square root of a(1 − a)/N.)</p><p>One simplification should be noted. In this experiment only the three data qubits were given errors. The parity checks and the correction were assumed to work perfectly, so every failure in the results comes from two or more data qubits flipping, and none comes from the checks themselves going wrong. Real quantum computers do not have this luxury, which is discussed in the Limitations section.</p><p>To make the process easier to follow, you can follow the interactive 3D simulator as mentioned above. The simulation lets you play the part of the error-correction system. The screenshots below show the main steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IFjq-opTgQi48HDrM1lt3A.png" /><figcaption>(a) encoding</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TUlS9fFn-z0CfXYELkS6lw.png" /><figcaption>(b) after a bit flip on one qubit</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DLGlhmAdDJLJe29lfan-Bw.png" /><figcaption>(c ) the syndrome computed on the ancillas</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KEoe3g_P1jLpvbiZTADHDw.png" /><figcaption>(d) syndrome when two qubits are flipped</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HvDTIbtXJu_WnQ22tuJiBA.png" /><figcaption>(e) logical error after 2 flips</figcaption></figure><p><strong>Figure 3.</strong> Screenshots of the interactive simulator</p><h3>4. Results</h3><p><strong>Experiment 1:</strong> Table 1 shows what happened for each of the eight error patterns. The first column says which qubits were flipped, the second is the syndrome the ancillas reported, the third is the qubit the code decided to fix, and the last two give the fidelity of the recovered qubit and whether the information survived. The two parity checks were computed onto the ancilla qubits, allowing the resulting syndrome to be identified without directly measuring the data qubits. The code handled every case with zero or one flip perfectly: the syndrome pointed to the correct qubit and the fidelity was exactly 1.000. Every case with two or three flips failed. With two flips the syndrome pointed at the wrong qubit, so the “correction” made things worse, and with three flips the syndrome read 00, so nothing was corrected at all. In these failures the fidelity was 0.708 rather than 0. That number does not measure partial damage. It reflects the particular test qubit I chose, which is partly 0 and partly 1, so its flipped version still resembles the original to some degree. For a test qubit that was purely 0 or purely 1, a failure would give a fidelity of 0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*L4n7dVo5V7YaEKrTX3Zmpw.png" /><figcaption><em>Table 1. Outcome for every error pattern</em></figcaption></figure><p><strong>Experiment 2:</strong>Table 2 shows the results of the noise sweep. For each physical error probability p (first column), it gives the measured failure rate of an unprotected single qubit, the failure rate predicted for the three-qubit code by the formula from Section 2, the failure rate I measured for the three-qubit code with its error bar σ, and the improvement, which is the unprotected rate divided by the protected rate. An improvement of 10× means the code fails ten times less often, and a value below 1× means it fails more often than having no code at all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*EqOBcb5ohWlp12M6buk8lQ.jpeg" /><figcaption><em>Table 2. Logical error rate versus physical error rate.</em></figcaption></figure><p>The measured results agree with the prediction at every noise level. Each measured value (fourth column) sits within about one error bar of the formula’s value (third column), which is the level of agreement you expect from random sampling. The code helps most when the qubits are most reliable. At p = 0.01, an unprotected qubit failed about 0.96% of the time while the protected one failed only 0.029% of the time, a 33-fold improvement. As p grows the benefit shrinks. At p = 0.5 the protected and unprotected rates are the same (about 0.50 each), so the code gives no advantage, and at p = 0.6 the code is worse, failing 64.7% of the time against 60.1% for an unprotected qubit.</p><p>Figure 4 shows the same results on a log-log graph, where both axes are stretched so that very small numbers stay visible. On this graph the unprotected qubit follows a straight line of slope 1, meaning that doubling p doubles its error rate. The protected qubit follows a steeper line of slope 2 at small p, meaning that doubling p roughly quadruples its error rate: the measured value rose from 0.00029 to 0.00122 when p went from 0.01 to 0.02. Because of this steeper slope, making the physical qubits a little more reliable makes the protected qubit much more reliable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*PR5u37RXDN134A3QfMyhiA.png" /><figcaption><strong>Figure 4.</strong> Measured logical error rate from the Aer simulation compared with the unprotected qubit and the theoretical curve. [Insert the graph saved by the notebook as logical_vs_physical.png.]</figcaption></figure><h3>5. Discussion</h3><p><strong>Why does this code work?</strong></p><p>The two parity checks give the same answer in both branches of the superposition, so they locate an error without revealing whether the logical state is 0 or 1. This is what lets the code detect errors without collapsing the information it protects. A single flip produces a unique syndrome, so one X gate undoes it.</p><p><strong>Why it fails?</strong></p><p>The syndrome is ambiguous once two qubits flip, because it matches a different single-flip pattern. The decoder picks the likelier explanation, applies the wrong fix, and leaves all three qubits flipped. That is a valid codeword, so the code cannot see the mistake. With three flips the syndrome is 00 and nothing is corrected.</p><p><strong>Quadratic suppression: </strong>For small values of p, the logical error rate is approximately 3p². This means that the failure probability decreases quadratically as the physical error probability decreases. For example, reducing the physical error probability by a factor of ten reduces the logical error probability by approximately a factor of one hundred.</p><p>At p = 0.01 the unprotected qubit fails with probability 0.01, and the protected qubit about 0.0003, roughly 34 times better. The improvement shrinks as p grows and vanishes at p = 0.5. Above 0.5 the code is worse than no code, because more qubits give errors more opportunities to occur.</p><p>Larger repetition codes tolerate more flips. In the ideal model at p = 0.1 the logical error falls from 0.028 with three qubits to 0.0086 with five and 0.0027 with seven. At p = 0.6 it rises as qubits are added. Real systems add another effect, because each extra qubit needs extra gates and checks that introduce errors of their own. The interactive simulator illustrates this with a toy model that assumes a fixed overhead error per added qubit. That curve is an assumption, not a measurement, and it shows why adding qubits only helps when each operation is reliable enough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*0Xo4R1UJSj9T3XcYMmvjuw.png" /><figcaption><strong>Figure 5.</strong> Ideal repetition-code logical error versus number of qubits for three physical error rates. Below p = 0.5 more qubits help, and above it they hurt.</figcaption></figure><p><strong>Limitations.</strong></p><ul><li>The code corrects bit flips only. A phase flip (Z error) passes through undetected, which is why practical codes must protect against both error types.</li><li>The noise model is idealized. Gates and syndrome measurements are perfect, and flips are independent. Real hardware has gate and measurement errors, so real break-even error rates are far below 0.5.</li><li>Everything is simulated. No data from a physical quantum computer is used.</li></ul><h3>6. Conclusion</h3><p>The three-qubit bit-flip repetition code detects and corrects any single bit flip without measuring the encoded information. It fails when two or more qubits flip, giving a logical error rate of 3p² − 2p³ that beats an unprotected qubit for p &lt; 0.5 and suppresses errors quadratically at small p. These results answer the research question within an idealized model. Their main lesson is that redundancy helps only when the underlying qubits are reliable enough.</p><p>The next stage of this project is to move beyond the repetition code. Surface codes protect against both bit-flip and phase-flip errors and are a leading approach for scalable QEC. I plan to simulate a small surface code and then investigate an adaptive decoder that responds to changing noise conditions.</p><h3>References</h3><ol><li><a href="https://doi.org/10.1017/CBO9780511976667">Nielsen, M. A., &amp; Chuang, I. L. (2010). <em>Quantum Computation and Quantum Information</em> (10th Anniversary ed.). Cambridge University Press.</a></li><li><a href="https://doi.org/10.1038/299802a0">Wootters, W. K., &amp; Zurek, W. H. (1982). A single quantum cannot be cloned. <em>Nature, 299</em>, 802–803</a>.</li><li><a href="https://doi.org/10.1103/PhysRevA.52.R2493">Shor, P. W. (1995). Scheme for reducing decoherence in quantum computer memory. <em>Physical Review A, 52</em>(4), R2493–R2496.</a></li><li><a href="https://docs.quantum.ibm.com/api/qiskit">IBM Quantum. (n.d.). <em>Qiskit documentation</em>.</a></li><li><a href="https://qiskit.github.io/qiskit-aer/">Qiskit Development Team. (n.d.). <em>Qiskit Aer documentation</em>.</a></li><li><a href="https://doi.org/10.1103/PhysRevA.86.032324">Fowler, A. G., Mariantoni, M., Martinis, J. M., &amp; Cleland, A. N. (2012). Surface codes: Towards practical large-scale quantum computation. <em>Physical Review A, 86</em>(3), 032324.</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb125d51e158" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How effectively can quantum error correction protect a logical qubit?]]></title>
            <link>https://medium.com/@sadiarahman.ta.09/how-effectively-can-quantum-error-correction-protect-a-logical-qubit-a3a9f36c2d2b?source=rss-341511949b4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3a9f36c2d2b</guid>
            <category><![CDATA[reserach]]></category>
            <category><![CDATA[deep-technology]]></category>
            <category><![CDATA[quantum-mechanics]]></category>
            <category><![CDATA[cutting-edge-technology]]></category>
            <category><![CDATA[quantum-computing]]></category>
            <dc:creator><![CDATA[Sadia Rahman]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 03:26:44 GMT</pubDate>
            <atom:updated>2026-10-22T03:26:44.895Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0T57N8OVdHl7C1R5.jpg" /><figcaption>Why do quantum computers look so weird?</figcaption></figure><p>How do we control something without disturbing it? That remains the most challenging question in the field of quantum computing. Quantum computers depend on extremely delicate and fragile states. Scientists are required to manipulate those states to perform calculations, but every interaction with a qubit (quantum bit) also creates an opportunity for unwanted noise and error.</p><p>As a quantum chip grows from dozens to thousands, and even millions, of qubits, even small errors can compromise the computer’s accuracy, making precise control one of the central challenges of building a fault-tolerant quantum computer.</p><h3>The quantum properties</h3><p>To understand this concept, we need to better understand the unique quantum properties of a quantum computer that result in these challenges. Unlike classical bits, which represent either 0 or 1, qubits can exist in a superposition of both states. Through entanglement, qubits become linked, allowing quantum computers to represent complex quantum states. Interference enables quantum algorithms to amplify useful outcomes and suppress unwanted ones, increasing the likelihood of finding the correct answer.</p><p>However, qubits are extremely sensitive to their surroundings. Heat, electromagnetic fields, vibrations, and imperfect control pulses can disturb their states, causing decoherence and threatening the quantum information needed for reliable computation.</p><h3>The Challenge</h3><p>If qubits are so vulnerable to errors, how can quantum computers remain reliable enough to perform complex calculations? The solution lies in quantum error correction, a technique that protects quantum information from disturbances. Rather than relying on a single physical qubit, scientists encode information across multiple physical qubits to create a logical qubit. This allows errors affecting individual qubits to be detected and corrected without directly measuring the quantum information itself.</p><p>However, protecting a logical qubit is not as simple as identifying when a qubit changes state. Quantum errors can take different forms, including bit-flip errors, which change a qubit’s state, and phase-flip errors, which alter the relative phase of its quantum state. Understanding how these errors occur, and how quantum gates help detect and correct them, is essential to building fault-tolerant quantum computers.</p><h3>Errors</h3><p>As Microsoft Quantum states, “current state-of-the-art quantum computers have error rates that are typically in the range of 1% to 0.1%. In other words, this means that on average one out of every 100 to 1000 quantum gate operations will result in an error.” This describes typical devices; the best systems today are much better, for example Quantinuum’s Helios, whose two-qubit gate error is about 0.08%.</p><p><strong>Bit flips:</strong> A bit flip is the quantum analogue of a classical bit error. It occurs when a qubit’s state accidentally swaps between 0 and 1.</p><p><strong>Phase flips:</strong> A phase flip is a uniquely quantum error that has no classical counterpart. It does not change the probability of measuring a 0 or a 1, but it alters the hidden mathematical relationship (the phase) between them, destroying quantum interference. In a superposition, it flips the relative sign between the two states (for example, turning |+⟩ into |−⟩).</p><p>Here is a rough analogy, and like any analogy it is imperfect. Think of a qubit like a spinning coin on a table, rather than a flat coin that is just heads (0) or tails (1).</p><p>When a coin spins, it is like a “superposition”: it has not settled on heads or tails, and either outcome is possible when it stops. The direction it is spinning (clockwise vs. counter-clockwise) loosely represents its phase.</p><p>A bit flip physically knocks the coin over. If it was landing heads, it now lands tails.</p><p>A phase flip suddenly reverses the direction of the spin (from clockwise to counter-clockwise).</p><p>If you just stop the coin and look at it, you won’t notice the phase flip. It still has a 50/50 chance of landing on heads or tails either way.</p><p>However, quantum computers rely on the timing and alignment of these spins (called interference) to do complex math. If one qubit’s spin is suddenly reversed out of nowhere, it gets out of sync with the other qubits, causing the final calculation to fail.</p><h3>The Solution?</h3><p>Scientists use quantum gates, implemented through precisely controlled microwave pulses or laser fields, depending on the hardware, to manipulate physical qubits and perform quantum error correction. By forming logical qubits, they can detect and correct bit-flip and phase-flip errors through repeated measurements and decoding, helping protect quantum information from disturbances.</p><p><strong>So, what are some of these gates?</strong></p><p>Quantum gates are often divided into two categories: Clifford and non-Clifford gates.</p><p>Clifford gates play an important role in quantum error correction.</p><ul><li>The Hadamard gate (H) changes the basis of a qubit, turning a phase-flip (Z) error into a bit-flip (X) error, so the same style of correction can be used to handle both.</li><li>The Pauli X gate acts like a classical NOT gate, switching states.</li><li>The CNOT gate, or controlled-NOT gate, uses one qubit to control an operation on another. It can help encode quantum information and connect data qubits to auxiliary qubits called ancillas, whose measurements reveal error syndromes without directly measuring the protected logical information.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*mP2Jcph6XmDHCGoe4geMQg.png" /></figure><p>However, Clifford gates alone cannot perform every possible quantum computation. Under standard conditions, circuits made entirely of Clifford gates can be efficiently simulated on a classical computer. To achieve universal quantum computation, a suitable non-Clifford gate must also be included.</p><p>One important example is the T gate, which applies a specific phase change to a qubit’s quantum state. A phase change means changing the relative timing or alignment of the quantum waves that make up that state. These phase differences affect quantum interference, which determines whether quantum possibilities reinforce or cancel each other during a calculation.</p><p>Unlike Clifford gates, non-Clifford gates cannot generally be simulated efficiently using the same classical methods. They allow quantum algorithms to access a wider range of operations, but implementing them reliably on logical qubits is challenging.</p><p>In many fault-tolerant architectures, one approach involves magic-state distillation: a process that combines imperfect quantum states (quantum states with errors) to produce more reliable ones (with fewer errors), which can then help quantum computers perform non-Clifford operations, such as the T gate, more accurately and reliably. In essence, many noisy copies of a state are repeatedly combined to produce fewer, cleaner ones.</p><p>Magic state distillation requires many physical qubits, extra operations, and time. Those resources must also be protected against errors. Consequently, even if a quantum computer can protect a logical qubit’s memory, performing long and complex computations reliably remains a major challenge.</p><p><strong>So how close are scientists to solving this problem?</strong></p><p>Research teams around the world are developing different approaches to quantum error correction and fault-tolerant computing. In a Nature paper published online in December 2024 and in print in 2025 (Nature 638, 920–926), Google Quantum AI demonstrated quantum error correction on its Willow processor using 101 physical qubits to create a distance-7 surface-code logical memory, achieving a logical error rate of just 0.143% per correction cycle and reducing the error rate by a factor of 2.14 each time the code distance increased by two.</p><p>This demonstrates that increasing the distance of a surface code can suppress logical errors, showing how adding physical qubits strategically can make quantum information more reliable rather than simply increasing the number of qubits available for computation. It is also experimental evidence for the threshold theorem, which states that if physical error rates are below a critical threshold, adding more physical qubits suppresses the logical error rate exponentially.</p><p>IBM is exploring a different way to protect quantum information using specialized error-correcting codes called bivariate bicycle codes, a type of quantum low-density parity-check (qLDPC) code. Its planned Starling system, targeted for 2029, aims to use 200 logical qubits to run 100 million quantum gates, although these are future targets rather than results already achieved.</p><p>Quantinuum takes a different approach by using trapped ions instead of superconducting circuits to build quantum computers. Its newest system, Helios, unveiled in November 2025, uses 98 physical qubits, with single-qubit gate fidelity of about 99.9975% and two-qubit gate fidelity of about 99.92%. These results show how precisely scientists can control qubits, an important step toward building more reliable quantum computers.</p><p>These are some of the leading frontiers in this field, and while their approaches differ, they share the same goal: building quantum computers that can perform increasingly complex calculations without errors overwhelming the results.</p><h3>My Proposed Solution: An integrated approach to quantum error correction</h3><p>I believe improving quantum error correction requires more than simply adding physical qubits or developing better gates. The solution should combine reliable error detection, adaptive decoding, and more resource-efficient error-correcting codes into a single system. Two of these directions already exist separately: adaptive and machine-learning decoders, such as Google DeepMind’s AlphaQubit, and low-overhead qLDPC codes, such as IBM’s bivariate bicycle codes. My proposal is therefore not a new technique but a way of combining existing directions into one framework.</p><p>Repeated measurements could help track changing error patterns, while an adaptive classical decoder could update its predictions to identify likely errors more effectively. At the same time, investigating codes that require fewer physical qubits could reduce the hardware overhead needed to protect logical information.</p><p>These improvements would also need to work together without making error correction too slow or introducing additional errors. I would investigate this approach through simulations, comparing its logical error rate, physical-qubit requirements, and decoding time against a conventional fixed strategy. The goal would be to determine whether combining these methods can make quantum error correction more reliable, efficient, and scalable as quantum computers grow.</p><p>Although this approach would not eliminate every source of quantum error, it could provide a framework for addressing several obstacles to fault-tolerant quantum computing simultaneously.</p><p>I believe, and this is my own prediction, that within the next 5 to 10 years scientists could develop a fault-tolerant quantum computer with adaptive error correction. IBM’s roadmap, for example, targets a fault-tolerant system by 2029. A quantum computer is only as powerful as the information it can protect and the future breakthrough will not just be in making quantum information possible, but in making it last.</p><p>Sources:</p><p>Google Quantum AI and Collaborators. “<a href="https://doi.org/10.1038/s41586-024-08449-y">Quantum error correction below the surface code threshold</a>.” <em>Nature</em> <strong>638</strong>, 920–926 (2025).</p><p>Microsoft Quantum- “<a href="https://quantum.microsoft.com/en-us/insights/education/concepts/quantum-error-correction">Quantum Error Correction</a>”</p><p>IBM Quantum, “ <a href="https://www.ibm.com/quantum/blog/qec-continuum">The continuous path from error mitigation to fault-tolerant quantum computing</a>”</p><p>Quantinuum Research, “<a href="https://www.quantinuum.com/blog/helix-a-new-architecture-for-enterprise-scale-fault-tolerant-quantum-computing">Helix: A New Architecture for Enterprise-Scale Fault-Tolerant Quantum Computing</a>”</p><p>IonQ Publications, “<a href="https://www.ionq.com/resources/fault-tolerant-quantum-computing-with-trapped-ions-the-walking-cat-architecture">Fault-Tolerant Quantum Computing with Trapped Ions: The Walking Cat Architecture</a>”</p><p>Google Blogs, November 20, 2024, “ <a href="https://blog.google/innovation-and-ai/models-and-research/google-deepmind/alphaqubit-quantum-error-correction/">AlphaQubit: Google’s research on quantum error correction</a>”</p><p><a href="https://arxiv.org/abs/2308.07915">High-threshold and low-overhead fault-tolerant quantum memory (arXiv 2308.07915)</a>. Bravyi et al., <em>Nature</em> 627, 778–782 (2024). This is the original paper on the bivariate bicycle codes you mention</p><p><a href="https://arxiv.org/pdf/2511.05465">Helios: A 98-qubit trapped-ion quantum computer (arXiv 2511.05465)</a>.</p><p><a href="https://arxiv.org/abs/quant-ph/0403025">Universal quantum computation with ideal Clifford gates and noisy ancillas (arXiv quant-ph/0403025)</a>. Bravyi and Kitaev, <em>Phys. Rev. A</em> 71, 022316 (2005).</p><p><a href="https://www.ibm.com/quantum/blog/quantum-magic-states">IBM blog on magic states</a>.</p><p><a href="https://arxiv.org/abs/1302.3428">Quantum Error Correction for Quantum Memories (Terhal, arXiv 1302.3428)</a>.</p><p><a href="https://pubmed.ncbi.nlm.nih.gov/23787909">Quantum Error Correction for Beginners (PubMed)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3a9f36c2d2b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>