<?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 Gehad Eldibany on Medium]]></title>
        <description><![CDATA[Stories by Gehad Eldibany on Medium]]></description>
        <link>https://medium.com/@gehadibany?source=rss-e412fc93659c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*f-qAb3CguRedicXvdF3BQQ.jpeg</url>
            <title>Stories by Gehad Eldibany on Medium</title>
            <link>https://medium.com/@gehadibany?source=rss-e412fc93659c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:46:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gehadibany/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[Quantum key distribution: (4) Cryptography using untrusted devices]]></title>
            <link>https://gehadibany.medium.com/quantum-key-distribution-4-cryptography-using-untrusted-devices-d2ca1c42f2b8?source=rss-e412fc93659c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2ca1c42f2b8</guid>
            <category><![CDATA[quantum-physics]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[quantum-computing]]></category>
            <category><![CDATA[womanium]]></category>
            <dc:creator><![CDATA[Gehad Eldibany]]></dc:creator>
            <pubDate>Mon, 11 Sep 2023 09:25:35 GMT</pubDate>
            <atom:updated>2023-09-11T09:36:17.770Z</atom:updated>
            <content:encoded><![CDATA[<h4>Part of my <a href="https://womanium.org/Quantum/Program">Womanium</a> Global Quantum Project</h4><p>Following Ekert’s proposal of employing entanglement and CHSH inequality for further security guarantees, Bennet and Brassard (BB84), together with Mermin, proposed an <a href="https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.68.557">entanglement-based version of BB84</a>*. Although these protocols and other similar protocols provided security proofs, they all assume the devices will act exactly as the theoretical model. Real-world devices, however, are susceptible to errors and can be manipulated, which leads to a gap between ‘theoretical security’ and ‘implementation security’.</p><p>This article provides an overview of quantum cryptography that does not trust that the devices will act as per the theory.</p><h4><strong>Device-independent QKD (DI-QKD)</strong></h4><p>DI-QKD deals with devices as ‘black boxes’, i.e. with no assumptions regarding how they work internally. It further assumes that the entanglement source is controlled by Charlie.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*Y3GuGEEIC8Ti5BrmcUpeRg.png" /><figcaption>Source: Wolf, Ramona (2021)</figcaption></figure><p>With a setting similar to the schematic above, the protocol follows these steps:</p><ol><li>Charlie sends entangled particles over the quantum channel to Alice and Bob who chooses three and two different measurements, respectively as shown in the figure, both with outcomes ±1.</li><li>Alice and Bob communicate over the classical channel to calculate <em>S</em> as discussed before <a href="https://gehadibany.medium.com/quantum-key-distribution-3-entanglement-based-cryptography-e8e2778c5afb">here</a>.</li><li>Alice and Bob calculate a second parameter called the quantum bit error rate (QBER) or <em>Q, </em>which is the probability of them getting different outcomes upon measuring <em>A</em>_0<em> </em>and <em>B</em>_1.</li></ol><p>If <em>S</em> is low (significantly lower than 2√2 as explained before) and <em>Q</em> is high, then the protocol should be repeated. Otherwise, Alice and Bob use <em>S</em> and <em>Q </em>to perform <a href="https://link.springer.com/chapter/10.1007/978-3-030-73991-1_4#Sec10">classical post-processing</a>. In this stage, they obtain a secure key from the raw key that is not fully secure (depending on the outcomes of calculating <em>S</em> and <em>Q</em>).</p><h4><strong>Side-channel attacks</strong></h4><p>Although DI-QKD makes no assumptions regarding the source and the inner working of the devices, it trusts the detectors/measurement devices controlled by Alice and Bob. It might sound reasonable to trust the devices controlled by the authorized parties, but this ignores the possibility of what we call <em>side-channel attacks.</em></p><p>Instead of targeting the protocol in use, side-channel attacks exploit imperfections in the implementation setting. By monitoring and analyzing the variations in the timing of operations done by each party, Charlie can obtain information about the data being processed. Charlie can also <em>blind</em> the photon detectors by shining bright light on the detector to make it lose its sensitivity to the single-photon pulse it should receive from the other party. This gave rise to the need for a protocol that does not assume measurement devices are secure and flawless.</p><h4><strong>Measurement device-independent QKD (MDI-QKD)</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2-SvhoUtnadEGUo0fz5V1Q.png" /><figcaption>Source: Cao et al.<em> </em>(2022)</figcaption></figure><p>To eliminate the detector side-channel attacks, <a href="https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.108.130503">MDI-QKD was proposed in 2012</a>. A MDI-QKD protocol uses the generic setting above and consists of the following steps:</p><ol><li>Alice and Bob prepare <em>weak coherent pulses </em>(nearly single-photon pulses), encode logical bits in the photon polarization as discussed in <a href="https://gehadibany.medium.com/quantum-key-distribution-2-protocols-5e8a79c8c800">BB84</a>.</li><li>Alice and Bob send both pulses to the untrusted relay (Charlie), where the pulses meet at a beam splitter where a <em>Bell state measurement (BSM)*</em> is conducted.</li><li>Charlie announces the results of his measurement to Alice and Bob.</li><li>Alice and Bob discard the unsuccessful measurements and announce the preparation bases for successful pairs.</li></ol><p>If, for example, the BSM results in the <em>singlet state</em>, and Alice and Bob have prepared the photons in the same basis, one of them should flip the outcome and use the results as the key.</p><p>It should be noted that in this protocol the error rate should be calculated and the raw key should be processed accordingly to obtain the secure key. CHSH is used to upper bound Charlie’s knowledge in some variations of the protocol as well. For further mathematical explanation, check <a href="https://www.youtube.com/watch?v=oBfWh67peJg">this webinar of Womanium QKD module.</a> on entanglement-based QKD, including DI-QKD and MDI-QKD.</p><p>The protocols covered so far belong to the discrete variable QKD (DV-QKD) family. There is another family called continuous variable QKD (CV-QKD). Photon polarization is used to encode information in DV-QKD, but in CV-QKD, variables of the electromagnetic waves, such as amplitude and phase of the light wave, are used to encode the information. The following is a breif comparison:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*c4Rh1uEgh5a0wrua87I--Q.png" /><figcaption>Source: <a href="https://ieeexplore.ieee.org/ielx7/6287639/8274985/08276296.pdf?">Trinh et al. (2018)</a></figcaption></figure><p>Although it might look like CV-QKD has more advantages, especially as it scores best in the integration with the existing infrastructure, it still needs development both theoretically and experimentally. In theory, its security proofs are challenging, and its parameters are unbounded unlike DV-QKD parameters, CHSH violation and QBER. In experiment, it is more susceptible to noise. It is easy to discard noisy single signals in DV-QKD, which is not possible in CV-QKD and, hence, entails more noise.</p><p>You might be thinking that this is too complex to be implemented/deployed on the ground, but quantum key distribution has been used in key events, including 2010 FIFA World Cup!</p><p>In the next article, some key implementations and networks will be discussed.</p><p>*Bell measurement is the measurement of two qubits to determine their Bell state. There are four Bell states representing the states of two maximally entangled particles (discussed before in <a href="https://gehadibany.medium.com/quantum-key-distribution-3-entanglement-based-cryptography-e8e2778c5afb">E91</a>). For more information on Bell state and how to perform the measurement in Python, check <a href="https://quantumcomputinguk.org/tutorials/introduction-to-bell-states">this page</a>.</p><p>Opinions expressed here, if any, are solely my own and do not represent any entity’s views.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2ca1c42f2b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quantum key distribution: (3) Entanglement-based cryptography]]></title>
            <link>https://gehadibany.medium.com/quantum-key-distribution-3-entanglement-based-cryptography-e8e2778c5afb?source=rss-e412fc93659c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8e2778c5afb</guid>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[quantum-cryptography]]></category>
            <category><![CDATA[quantum-physics]]></category>
            <category><![CDATA[quantum-computing]]></category>
            <dc:creator><![CDATA[Gehad Eldibany]]></dc:creator>
            <pubDate>Sat, 09 Sep 2023 03:11:14 GMT</pubDate>
            <atom:updated>2023-09-11T06:06:44.891Z</atom:updated>
            <content:encoded><![CDATA[<h4>Part of my <a href="https://womanium.org/Quantum/Program">Womanium</a> Global Quantum Project</h4><p>In 1991, Artur Ekert proposed a more secure protocol using an <a href="https://cds.cern.ch/record/405662/files/PhysRev.47.777.pdf">Einstein-Rosen-Podolsky (EPR) pair</a> (i.e. <em>entangled</em> pair of particles) with a security test based on violating a <a href="https://cds.cern.ch/record/111654/files/vol1p195-200_001.pdf">Bell’s inequality</a>.</p><p>Before discussing <a href="https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.67.661">E91</a> (Ekert’s entanglement-based protocol), let’s discuss first the theories behind it.</p><h4><strong>Entanglement</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*qt3DjGbWg733L8oQ.jpg" /><figcaption>Experimental setup of Schrödinger’s thought experiment. <a href="https://www.rms.com/blog/2018/09/04/schrodingers-cat-model">Source</a></figcaption></figure><p>When we consider Schrödinger’s famous <em>gedankenexperiment</em>, we think of the cat that is dead and alive. But now we need to think of <em>both</em> the cat and the poison flask as a<em> bipartite system</em>. If you blindly grabbed the cat from the box, checked it and found that it is dead, you will instantly know without looking at the poison flask that it is broken. In this scenario, we can say that the cat’s state (dead or alive) is <em>entangled</em> with the flask’s state (sealed/intact or open/broken). <strong>Note here that this relationship in our context is about <em>correlation</em> rather than causation.</strong></p><p>Entanglement is a phenomenon when two <em>(or more!)</em> particles are linked, even when spatially separated, so that the measurement of a property of one particle determines with certainty the value of a property of the other particle. This makes the measurement process of the polarization of a photon for instance decides the polarization of another photon with which the first photon is entangled, no matter how far it is.</p><p>But what if we checked and found the cat alive and the flask intact, then we checked again and found the cat dead while the flask was still intact? Does not it mean that the cat’s state is <em>correlated</em> with another factor, like the insufficiency of air?</p><p><strong>Can we still say that the cat is entangled with flask? (1)</strong></p><p><strong>Are they either entangled or non-entangled and nothing in between?* (2)</strong></p><p>To know the answer, we should discuss an interesting property of entanglement.</p><h4><strong>CHSH inequality and monogamy</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*ffcCTNTQo03o84ibiXA9cg.png" /><figcaption>The paper referred to here is EPR 1935. Source: rarenewspapers.com</figcaption></figure><p>To explain the effects of entanglement, that <em>incorrectly </em>seemed to violate a fundamental physical fact**, EPR (1935) proposed <em>local hidden variables</em> responsible for the quantum effects. Later in 1964, John Stewart Bell formulated a theorem upper bounding the correlations that can be explained classically. That is, if the correlated measurements of two particles satisfied a Bell’s inequality, the system is governed by classical physics. If they violated the inequality, the system is governed by quantum physics.</p><p>In 1969, John Clauser (<a href="https://www.nobelprize.org/prizes/physics/2022/summary/">Nobel 2022</a>), Michael Horne, Abner Shimony, and Richard Holt (collectively CHSH) formulated the CHSH inequality based on Bell’s inequality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*-o_y0pYKvYf5qQWIVY0JWg.png" /><figcaption>Source: <a href="https://en.wikipedia.org/wiki/CHSH_inequality">wikipedia</a>. E represents the correlations. For further explanation <em>see the notes at the end of this post.***</em></figcaption></figure><p>If the value of |<em>S| </em>exceeds 2, i.e. violates the inequality, then the correlation is explained by quantum entanglement.</p><p>The upper bound of |<em>S| </em>for classical systems is 2. Correlations resulting from quantum entanglement, on the other hand, give values larger than 2 and up to 2√2, at which the particles are called <em>maximally entangled.</em></p><p>Coming back to our questions above, we can now say that particles are not just entangled or non-entangled. Entanglement falls in a range from 0, <em>non-entangled</em>, to 1, <em>maximally entangled, </em>which corresponds with the value of |<em>S</em>| = 2√2.</p><p>This answers question (1), but question (2). If a particle is correlated with another, can we say that it is entangled with a third particle?</p><p>The short answer is ‘No’. <strong>Entanglement is monogamous, </strong>in the sense that it limits the correlation particle <em>A</em> can have with particle <em>C</em> if A is entangled with <em>B</em>. If <em>A</em> &amp; <em>B</em> are maximally entangled (i.e. |<em>S</em>| = 2√2), <em>A</em> (or <em>B</em>) cannot be correlated/entangled with C. So, the cat’s correlation with the air in the box negates the entanglement with the flask in this scenario.</p><p>Together with CHSH inequality, the monogamy of entanglement plays a crucial role in entanglement-based cryptography.</p><h4><strong>E91 — The first entanglement-based quantum protocol</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*MD7TgqWHGiDVs_NVvebloA.png" /><figcaption>E91 schematic. Source cited <a href="https://www.cse.wustl.edu/~jain/cse571-07/ftp/quantum/">here</a></figcaption></figure><p>Ekert used the entanglement phenomenon to guarantee more security by performing a test to find how much the adversary managed to access.</p><p>The dual-channel setting is used in this protocol as well, but Alice here receives photons like Bob instead of preparing and sending them. A source is used to generate pairs of entangled photons in the singlet state and send each party one photon of the pair over the quantum channel. Alice and Bob measure the polarization at random bases and then discuss the results over the classical channel as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*6CgYh2oZSWY8BO3E0AlszQ.png" /><figcaption>Source: Wolf, Ramona (2021)</figcaption></figure><ol><li>Alice and Bob reveal their measurement bases (directions).</li><li>They divide them into two groups: different bases and same bases.</li><li>They announce the results of the measurement at the different bases to calculate the value <em>S </em>(This is what we call <strong>the Bell test</strong>).</li></ol><p>Ideally, the result should match <em>|S| = </em>2√2 to ensure full security, but entanglement is fragile and affected by other factors, so values near to 2√2 can be considered secure. The nearer the result is to <em>|S| = </em>2√2, the less disturbance and less information Charlie can access.</p><p>In this case, the result of the measurement at the same directions (which were NOT announced publicly in the classical channel) are used to form the secure key.</p><p>It should be noted that Alice and Bob’s measurements at the same bases would be <em>anticorrelated****</em>, which means that they will be the opposite of each other. If Alice got <em>0</em> after interpreting the polarization, Bob gets 1. So one of them should <em>flip</em> the key they get to share one symmetric key (as discussed <a href="https://gehadibany.medium.com/quantum-key-distribution-2-protocols-5e8a79c8c800">here</a>)</p><p>4. If the value of <em>S </em>was significantly lower than 2√2, this compromises the security and could indicate that eavesdropping happened, so the protocol should be repeated.</p><p>E91 provides more security indeed, but it assumes that the devices are secure and flawless (will act exactly like the mathematical calculations and will not commit any errors). So, this security is called <em>theoretical security </em>and in practice the story is different.</p><p>To face this problem, <strong>Device-independent QKD (DI-QKD) </strong>and<strong> Measurement device-independent QKD (MDI-QKD) </strong>are proposed as alternative solutions. The next article will discuss these protocols and possible attacks.</p><p>*It should be noted that this is rather a simplified analogy that leaves out other factors and that quantum effects are not observed in macroscopic systems.</p><p>**There is a misconception that entanglement violates the speed of light, but in fact it does not. Knowing the measurement of the other particle on the other side of the universe instantly, does not mean <em>communicating</em> such information instantly. This cannot violate the speed of light.</p><p>*** <em>E</em> is the correlation between two particles, which is the probability that their measurements agree less the probability that they disagree. E= P(agree) — P(disagree)</p><p>The letters a, b, a’ and b’ refer to the rotation angles of qubits. In the case of the singlet state (an entangled state), E can be calculated without experimentation as E(a,b) = — cos (a — b).</p><p>Experimentally (using IBM Quantum if you are familiar with it), E is calculated as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*kKfSaqJRneGZVMf90MgZmg.png" /><figcaption>Source: <a href="https://en.wikipedia.org/wiki/CHSH_inequality">wikipedia</a></figcaption></figure><p>Where N is the number of coincidences categorized in ++, +-, -+ and — . If you used IBM Quantum to prepare a singlet state and measure the qubits at 2 angles of rotation around the y-axis for each qubit, you will get these results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*DZx1ANKgQDimOOI1XEfMVw.png" /></figure><p>Here <em>N</em>++ = 13, <em>N</em>+ — = 423,<em>N</em> — + =568 , <em>N</em> — — =20</p><p>The graph below shows the experimental results I got using a real quantum computer via <a href="https://quantum-computing.ibm.com/">IBM Quantum</a> to measure the correlations for a singlet state compared to the mathematical prediction using — cos (a — b).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*0AaysFrb5ZT3qnkUz4DjIA.png" /></figure><p>Quite close!</p><p>**** Measurements of entangled particles are not necessarily opposite to each other. This is because Alice and Bob in this protocol uses the singlet state expressed below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*8kWaE5rSi_5PofQNDkg3IQ.png" /><figcaption>Source: Wolf, Ramona (2021)</figcaption></figure><p>Opinions expressed here, if any, are solely my own and do not represent any entity’s views.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8e2778c5afb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quantum key distribution: (2) Physical grounds of BB84]]></title>
            <link>https://gehadibany.medium.com/quantum-key-distribution-2-protocols-5e8a79c8c800?source=rss-e412fc93659c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e8a79c8c800</guid>
            <category><![CDATA[quantum-computing]]></category>
            <category><![CDATA[quantum]]></category>
            <category><![CDATA[quantum-physics]]></category>
            <category><![CDATA[quantum-key-distribution]]></category>
            <category><![CDATA[cryptography]]></category>
            <dc:creator><![CDATA[Gehad Eldibany]]></dc:creator>
            <pubDate>Wed, 06 Sep 2023 06:02:36 GMT</pubDate>
            <atom:updated>2023-09-11T06:06:14.436Z</atom:updated>
            <content:encoded><![CDATA[<h4>Part of my <a href="https://womanium.org/Quantum/Program">Womanium</a> Global Quantum Project</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*ko24cj2VUoIKynkduE8x6g.png" /><figcaption>Source: <a href="https://doi.org/10.1109/COMST.2022.3144219.">Cao et al. (2022)</a></figcaption></figure><p>The interception of a communication channel is basically a set of measurements performed on the channel. The interceptor is a passive listener, <em>eavesdropper</em>, and there is no way to detect passive eavesdropping in the scenario of classical key distribution as the data is never altered. Quantum systems, on the other hand, are governed by Heisenberg uncertainty, which reveals the presence of <em>Charlie</em> in the form of disturbances introduced to the system.</p><p>To explain how the Uncertainty principle is employed in QKD together with other physical concepts, we should first discuss a quantum cryptography protocol.</p><h4><a href="https://doi.org/10.1016/j.tcs.2014.05.025"><strong>BB84 — A prepare-and-measure protocol</strong></a></h4><p>The concept of prepare-and-measure protocols is that Alice prepares the qubits and sends them to Bob to measure them. In BB84, Alice encodes a sequence of classical bits into the polarization of photons so that each polarization corresponds to a certain classical bit as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*lG1-I9OVeAnlFfkxszcrvQ.png" /></figure><p>Alice then sends the polarized photons over a quantum channel to Bob who measures them at rectilinear or diagonal basis randomly (e.g. using a measurement device rectilinearly or diagonally oriented) and records the measurements. It should be noted here that if Bob measures a rectilinearly polarized photon at a diagonal basis, the result will be random, and the information will be lost. That is, he will only get meaningful results when he guesses the polarization correctly.</p><p>Alice and Bob then use the classical channel to confirm which photons were received and measured correctly and agree on using them as the key without discussing the bits encoded in them.</p><p>To ensure that Charlie did not intercept the transmission, Alice and Bob compares the data of a random set of photons (like one third of photons). If their data for this set agrees, then the rest of the data agrees, and they can use the bits they did not publicly checked as <em>the secure key*. </em>If the measurement by Bob yielded 0 for a photon carrying the information of the classical bit 1, such discrepancy indicates eavesdropping. Alice and Bob then proceed with the error correction process by discarding the bits known to Charlie. This process results in either a corrected secure key or repeating the protocol if Charlie knows much data.</p><p>Now the question is: how does the discrepancy occur?</p><h4><strong>The first security guarantee: Heisenberg uncertainty</strong></h4><p>The uncertainty principle puts a limit to the certainty with which we can know complementary properties of a particle at the same time. As such, the measurement of one property randomizes the other.</p><p>In the scenario of QKD, the key is encoded in the polarization of photons. The complementary properties in this case are the rectilinear and diagonal polarization. When Charlie intercepts the polarized photons sent by Alice to Bob, he measures them, like Bob, in either a rectilinear basis or a diagonal basis randomly. If he guesses the basis correctly, he gets the information Alice originally sent Bob and the photon reaches Bob unaltered. If he chooses an incorrect basis, the photon state gets altered before reaching Bob. Now, even if Bob measures the photon at the same basis Alice used for the polarization, he will get half of the results wrong. Because the measurement Charlie performed randomized the results according to the uncertainty principle.</p><p>But can Charlie make a smart move to hide his actions, such as cloning these quantum signals transmitted by Alice to Bob to measure them secretly?</p><h4><strong>The no-cloning theorem</strong></h4><blockquote>When I was an undergraduate at Caltech, they had an automated system for requesting copies of articles when you were searching their publication database. I discovered, probably around my junior year, the papers of William Wootters, promptly ordered the automated system to print out every paper Wootters had ever written at that time and my life hasn’t been the same ever since! Wootters thesis is, in my opinion, one of the most interesting results I’ve ever encountered.</blockquote><blockquote>— Dave Bacon in his lecture notes on the no-cloning theorem.</blockquote><p>It is mathematically proven that <a href="https://www.nature.com/articles/299802a0">‘A single quantum cannot be cloned’</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*yIK0lk_5zh7547DPyU0KCQ.png" /><figcaption>This device CANNOT exist. Source: Wolf, R. (2021)</figcaption></figure><p>The proof was obtained by contradicting the results of two mathematical representation of the process (If you speak bras and kets, see Page 47 of <a href="https://link.springer.com/book/10.1007/978-3-030-73991-1">Wolf, Ramona (2021) </a>for a simplified mathematical explanation). Had such process been possible, no discrepancy could have occurred in the outcomes.</p><p>The no-cloning theorem states that no device can copy a quantum state (or amplify it) without knowing it beforehand. That is, you can only design a device that copies a certain quantum state and no other unknown states.</p><p>In QKD, the transmitted signal is weak and <em>theoretically</em> contains one photon, which entails that Charlie cannot extracts a part of it without causing the loss of signal. He needs to have a perfect copy of it to obtain information about the communication. However, as he knows nothing about the transmitted quantum states, the no-cloning theorem guarantees that he will not be able to even get such copy.</p><p>Although these security guarantees are rooted in the laws of physics and thus much stronger, they provide <em>theoretical</em> security. Practically, we find that there is <a href="https://www.nature.com/articles/s41565-021-00851-1">no such a perfect single-photon source</a>. This means that the transmitted pulses contain more than one photon, which is a loophole Charlie can take advantage of and <a href="https://www.nature.com/articles/nphoton.2015.227">extract single photons</a> from the beam to obtain the information he seeks.</p><p>But the laws of physics provide further security guarantees based on the <strong>entanglement </strong>phenomenon, the basis of the protocol <strong>E91 and entanglement-based protocols </strong>which will be discussed in the next article.</p><blockquote>* This key is a symmetric key like that in AES encryption. So, AES can make use of QKD in the key distribution process before the exchange of cryptograms over classical public channels.</blockquote><p>Opinions expressed here, if any, are solely my own and do not represent any entity’s views.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e8a79c8c800" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quantum key distribution: (1) Classical, post-quantum and quantum cryptography]]></title>
            <link>https://gehadibany.medium.com/quantum-key-distribution-1-classical-post-quantum-and-quantum-cryptography-b6b3928f129b?source=rss-e412fc93659c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6b3928f129b</guid>
            <category><![CDATA[quantum-computing]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[quantum]]></category>
            <category><![CDATA[quantum-key-distribution]]></category>
            <category><![CDATA[quantum-physics]]></category>
            <dc:creator><![CDATA[Gehad Eldibany]]></dc:creator>
            <pubDate>Sun, 03 Sep 2023 00:36:13 GMT</pubDate>
            <atom:updated>2023-09-11T06:05:45.256Z</atom:updated>
            <content:encoded><![CDATA[<h4>Part of my <a href="https://womanium.org/Quantum/Program">Womanium</a> Global Quantum Project</h4><p>This is a series of short articles on quantum key distribution. In these articles, I will be using <em>Alice</em> and <em>Bob</em>, to refer to the authorized sender and recipient in the communication channel, and <em>Charlie </em>to refer to the adversary (I don’t agree with <a href="https://journals.aps.org/rmp/abstract/10.1103/RevModPhys.81.1301">Scarani <em>et al.</em></a> that<strong> Eve’s task is to ‘mess things up’</strong>!)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*yuaB9eZqk5YgWks0" /><figcaption><em>Decoherence happens when the quantum bits (qubits) lose the superposition state due to interaction with the environment and start to act like classical (logical) bits.</em></figcaption></figure><p>You might have come across the terms ‘quantum cryptography’ and ‘post-quantum cryptography’, especially with<a href="https://thequantuminsider.com/2023/08/24/nist-releases-four-pqc-algorithms-for-standardization/#:~:text=NIST%20selected%20four%20algorithms%20it,Dilithium%2C%20FALCON%2C%20and%20SPHINCS%2B."> NIST recently choosing Kyber and other algorithms for standardization</a> and <a href="https://blog.chromium.org/2023/08/protecting-chrome-traffic-with-hybrid.html">Google’s recent release on supporting X25519Kyber768</a>. To know the difference between both, we first need to talk about ‘classical cryptography’ and the encryption methods currently used to secure communications.</p><h4><strong>Classical Cryptography</strong></h4><p>The security of current cryptosystems is conditional on the security of the encryption key, which can be symmetric or asymmetric. In symmetric cryptosystems, one key is used for the encryption and decryption processes. Asymmetric cryptosystems, on the other hand, require two keys. One public key available to any Bob wishing to contact Alice to encrypt the message, and the other is private, only available to Alice, to decrypt that message.</p><p>The security of both cryptosystems depends on what is called the ‘computational complexity’, which refers to the computational power and time required to run an algorithm to break these keys.</p><p>For example, <a href="https://www.cryptool.org/en/cto/rsa-step-by-step"><em>RSA</em></a>, one of the most powerful cryptosystems, depends on the computational complexity of factorization. To understand the concept, you could think of how easy it is to calculate 97*73 but difficult to find the prime factors of 7081. So if we say that the public key uses <em>n</em> = <em>p</em>*<em>q</em>, where <em>p</em> and <em>q</em> are the prime factors, it will be difficult for you to get <em>p</em> and <em>q</em> on your own with only <em>n </em>known, especially if it is a large number. Hence, you won’t be able to calculate <em>φ</em>(<em>n</em>) = (<em>p — </em>1)*(<em>q — </em>1), which is used to generate the private key in RSA.</p><p>Despite the relative security of these computationally complex methods, they are threatened by the quantum revolution, <a href="https://www.nature.com/articles/s41586-023-06096-3">which is getting closer.</a></p><p>In 1994 and 1996,<a href="https://ieeexplore.ieee.org/document/365700"> Shor</a> and <a href="https://arxiv.org/abs/quant-ph/9605043">Grover</a>, respectively, came up with algorithms that would dramatically reduce the time it would take to break classical ciphers using a quantum computer. And with this came the need to find alternative solutions!</p><h4><strong>Post-quantum Cryptography</strong></h4><p>Post-quantum cryptography (PQC) is often (and incorrectly!) referred to as ‘<em>quantum-resistant</em>’ and <em>‘quantum-safe’</em> cryptography. In 2016, NIST called for proposals for PQC algorithms to standardize and <a href="https://csrc.nist.gov/Projects/post-quantum-cryptography/news">some have been selected for standardization lately.</a></p><p>Now the question is: <strong>Is PQC really quantum-safe?</strong></p><p>The short answer is: No. It is indeed a step up from <em>current </em>classical ciphers, but it still depends on computational complexity, and thus is not safe from future advances in quantum algorithms. This makes it a pressing need to face the quantum computer with a solution from the quantum realm.</p><h4><strong>Quantum Cryptography</strong></h4><p>The security of quantum cryptography security depends on the laws of physics itself. As long as the laws of quantum physics are true, the cryptosystem is secure.</p><p>It all started with Bennet and Brassard’s <a href="https://arxiv.org/abs/2003.06557">proposal</a> (BB84) to use polarized photons to transmit digital information. The proposed protocol makes use of the quantum systems inherent sensitivity to disturbances, caused in this scenario by eavesdropping, to provide an extra security guarantee that cannot be found in classical systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*ezOMo4gfInCS9fz62MyciA.png" /><figcaption>BB84. Source quoted <a href="https://www.cse.wustl.edu/~jain/cse571-07/ftp/quantum/#references">here</a></figcaption></figure><p>The BB84 setting is a dual-channel communication system. One channel is a public (classical) channel where the encrypted messages are exchanged between Alice and Bob. The other channel is a quantum channel where Alice transmits polarized photons to Bob who measures them and agree with Alice on a final encryption key based on the measurements. This process is called quantum key distribution (QKD).</p><p>It is very important to remember that the communication itself is not encoded in qubits (e.g. photons) and transmitted over the quantum channel. It is only the key that is distributed, i.e. generated and communicated, using quantum systems.</p><p>The reasons will be explained in the next articles, which will discuss QKD protocols and the quantum principles they depend on, implementations and deployments. (Yes, QKD is not found only in the lab :) )</p><blockquote>Recommended resource on PQC:</blockquote><blockquote>Kumar, Manish. 2022. “Post-Quantum Cryptography Algorithm’s Standardization and Performance Analysis.” <em>Array</em> 15 (September): 100242. <a href="https://doi.org/10.1016/j.array.2022.100242">https://doi.org/10.1016/j.array.2022.100242</a>.</blockquote><p>Opinions expressed here, if any, are solely my own and do not represent any entity’s views.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6b3928f129b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>