<?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 Steve Atkin on Medium]]></title>
        <description><![CDATA[Stories by Steve Atkin on Medium]]></description>
        <link>https://medium.com/@stevenatkin?source=rss-f36f0223c032------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*fnBU42FSZsJAdFpt.png</url>
            <title>Stories by Steve Atkin on Medium</title>
            <link>https://medium.com/@stevenatkin?source=rss-f36f0223c032------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 06:45:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@stevenatkin/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[Coffee, Tacos and Data Science]]></title>
            <link>https://medium.com/@stevenatkin/coffee-tacos-and-data-science-80b9603cdca2?source=rss-f36f0223c032------2</link>
            <guid isPermaLink="false">https://medium.com/p/80b9603cdca2</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[coursera]]></category>
            <category><![CDATA[clustering]]></category>
            <dc:creator><![CDATA[Steve Atkin]]></dc:creator>
            <pubDate>Wed, 10 Jun 2020 00:14:14 GMT</pubDate>
            <atom:updated>2020-06-10T00:14:14.011Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NG5eLKQ0HBJJRTztrxptXw.jpeg" /></figure><p>This story starts with a simple question. What’s popular by your community college, are students flocking to coffee shops, burger joints, or Mexican restaurants? To answer this question I decided to take a look at one of the fastest growing metro markets, San Antonio TX and employ some simple data science techniques to see if I could get a definitive answer.</p><h3>Collecting The Data</h3><p>This analysis starts by first identifying the community colleges in and around San Antonio TX. I did this by grabbing the 2018–2019 postsecondary schools data set from the <a href="https://nces.ed.gov/">National Center for Education and Statistics</a> and filtering the schools to those located in San Antonio. Once I had the data, I supplemented it with neighborhood information using the <a href="https://www.mapbox.com/">Mapbox</a> service, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aAJEXnwZDKj_JpD_7Yz3UQ.png" /><figcaption>San Antonio Community Colleges</figcaption></figure><p>The next task was to collect data on the surrounding businesses in close proximity to the community colleges. I did this using <a href="https://foursquare.com/city-guide">Foursquare</a> where I set the number of businesses to a maximum of 50 within approximately a 3 mile radius of each school. Here is a sample of some of the venues that Foursquare uncovered, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*WfmySaTRySOdkNSIsE_itg.png" /><figcaption>San Antonio Venues</figcaption></figure><h3>Applying Data Science</h3><p>With all of the venue data in hand I would now be ready to apply some data science to the problem. The first task was to determine the type of analysis I would perform. I decided to cluster the venues to find similarities and differences in the venues close to the schools in San Antonio.</p><h4>Preparing Data for Clustering</h4><p>Clustering is a type of unsupervised learning. I decided to use the K-means clustering algorithm to cluster the venues. The K-Means algorithm is one of the most frequently used methods of unsupervised learning and typically yields good results. To learn more checkout this article on <a href="https://medium.com/@dilekamadushan/introduction-to-k-means-clustering-7c0ebc997e00">K-Means</a>.</p><p>One challenge that I faced is that K-Means clustering requires numerical data as input. In my case I did not have numerical data, but rather categorical data. This meant that I would have to somehow map or transform the categorical data into numeric values. This is fortunately a common occurrence so there are good techniques for doing addressing this issue. The technique that I selected to use is called One Hot Encoding. This method maps the categorical venue data to numeric data that can then be used in our clustering algorithms. Checkout this article to learn more about <a href="https://medium.com/@michaeldelsole/what-is-one-hot-encoding-and-how-to-do-it-f0ae272f1179">One Hot Encoding</a>.</p><p>This is a sample of what the data looks like once we Hot Encode it and then group the data by the name of each college, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*SpfMGdmzw-8zgyfPrS46gg.png" /><figcaption>Venue Data Hot Encoded</figcaption></figure><h4>Selecting Optimal Cluster Size</h4><p>Before I could start the actual clustering I still had one additional issue and that is what is the optimal number of clusters I should use to segment my data? Once again this is a common problem in data science and many techniques exist to help answer this question. The technique I selected is called the Silhouette method. When you use the Silhouette method you select various cluster sizes and then score how well they actually cluster the data. Once you have this data you plot this on a graph and select the cluster size that yields the highest score. To learn more checkout this article on the <a href="https://medium.com/@jyotiyadav99111/selecting-optimal-number-of-clusters-in-kmeans-algorithm-silhouette-score-c0d9ebb11308">Silhouette</a> method. Here is the plot for my data and as you can see the optimal cluster size is 4, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*O0-Jih_y7LQS2j1Dm-GnLA.png" /><figcaption>Silhouette Score</figcaption></figure><h4>Clustering</h4><p>With the data prepped for clustering and the optimal clustering size selected I could then feed the data into K-Means. Once the data was clustered I sorted the results by cluster value and displayed the top 5 venue categories, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*RC75zAXQ7rEROfRBvK8feg.png" /><figcaption>San Antonio Venue Clusters</figcaption></figure><h4>Conclusion</h4><p>Examining the results of clustering reveals four distinct clusters in San Antonio. We find that in the case of community colleges in San Antonio the clusters are largely defined by the venue categories: Coffee Shops and Mexican Restaurants. From this data we can see that students at Brightwood Ingram and the College of Health Care Professionals really love their coffee, while students at Palo Alto and Brightwood San Pedro really crave Mexican food.</p><h4>Learn More</h4><p>If you want to see a deeper analysis where I give you all the code and analyze some other cities checkout my <a href="https://github.com/stevenatkin/Coursera_Capstone/blob/master/capstone_project.md">GitHub</a> and <a href="https://nbviewer.jupyter.org/github/stevenatkin/Coursera_Capstone/blob/master/capstone.ipynb">Jupyter Notebook</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80b9603cdca2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Untangling Quantum Teleportation]]></title>
            <link>https://medium.com/qiskit/untangling-quantum-teleportation-919cbd673074?source=rss-f36f0223c032------2</link>
            <guid isPermaLink="false">https://medium.com/p/919cbd673074</guid>
            <category><![CDATA[ibm-quantum-experience]]></category>
            <category><![CDATA[quantum-computing]]></category>
            <category><![CDATA[quantum-teleportation]]></category>
            <dc:creator><![CDATA[Steve Atkin]]></dc:creator>
            <pubDate>Tue, 24 Jul 2018 01:01:16 GMT</pubDate>
            <atom:updated>2021-05-18T21:53:46.114Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eKMb4-F2LASlJ0AqLtDxAg.jpeg" /></figure><p><em>Note from the present: The code from this article is out of date. You can learn more about Quantum Teleportation in the </em><a href="https://qiskit.org/textbook/ch-algorithms/teleportation.html"><em>Qiskit Textbook here.</em></a></p><p>In this post I will help to untangle the mystery of quantum teleportation and provide some sample code that you can run on <a href="https://quantumexperience.ng.bluemix.net/qx/experience">IBM’s Quantum Experience</a> to see it in action. I will be using <a href="https://github.com/QISKit/qiskit-core">QISKit</a> in this article so download and install the SDK.</p><p>This is a follow up post to an earlier article on S<a href="https://medium.com/qiskit/demystifying-superdense-coding-41d46401910e">uperdense Coding</a>, so I encourage to you read that first as you will need to have a good understanding of quantum superposition and entanglement before tackling the subject of quantum teleportation.</p><p>As we shall see quantum teleportation is really the flip side of superdense coding. In superdense coding we are able to send two classical bits of information using only a single qubit. In quantum teleportation we will use two classical bits of information to send a single qubit that is in an unknown quantum state.</p><p>I will walk you through the math, quantum circuits, and code. Along the way, I will explain what is happening in each step. Before I get started I assume that you have some knowledge of qubits, Dirac notation, classical bits, and linear algebra. If you are looking for a tutorial on Quantum Computing I encourage you to check out the <a href="https://quantumexperience.ng.bluemix.net/qx/tutorial?sectionId=full-user-guide&amp;page=introduction">IBM Q Experience</a> documentation.</p><p>Before we dive into the foundational concepts let’s look at some Python code that we will use in our examples. In the following code fragment, we create two types of registers: quantum and classical. The classical registers will be used to store the results of measuring our quantum registers. The quantum registers are our ‘qubits’ and we will manipulate them in our program to achieve certain desired effects. The quantum circuit will be used to wire our qubits and operations together. You can find a copy of the code that we will use throughout the article <a href="https://github.com/stevenatkin/quantum/blob/master/teleport.py">here</a>.</p><pre>from qiskit import QuantumCircuit, ClassicalRegister, QuantumRegister</pre><pre>from qiskit import available_backends, execute</pre><pre># Create three quantum and classical registers</pre><pre>q = QuantumRegister(3)<br>c = ClassicalRegister(3)<br>qc = QuantumCircuit(q, c)</pre><h4>Introduction</h4><p>Before we embark on our journey into quantum teleportation we need to first discuss what it means to copy or clone a qubit. As we will soon see, qubits in unknown states cannot generally be copied or cloned. So, naturally you should be asking yourself how will we be able to transmit a qubit if we cannot copy or clone it? In this article I will show you how we can work around this restriction to faithfully send a quibit without loss of information.</p><p>As a refresher recall the Dirac and vector notation for |0⟩ and|1⟩ basis states and the general description of a qubit as a linear combination of basis states, as shown in the diagrams below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/152/1*70onhKctRXvbW7xbdEZLFg.png" /><figcaption>Dirac and vector notation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/224/1*m1PP-YULq86G_YpN7ntgxg.png" /><figcaption>Qubit linear combination of basis states</figcaption></figure><h4>No Cloning Theorem</h4><p>Let’s start our journey into quantum teleportation by first exploring the notion of cloning qubits. The “No Cloning Theorem” states that you cannot universally clone a qubit in an unknown quantum state. Let’s dig into this a little deeper to see why this is true.</p><p>Before we jump in, let’s just spend a moment to take a look at the rules for adding and multiplying vectors, as we will need this information to understand the “No Cloning Theorem”.</p><pre>|𝜓⟩,|𝜙⟩, and |𝜔⟩ are vectors</pre><pre>The sum |𝜓⟩ + |𝜙⟩ is a vector</pre><pre>The scalar product 𝛼|𝜓⟩ is a vector and 𝛼 is a complex number 𝛼 ∈ ℂ</pre><pre>Addition is commutative: |𝜓⟩ + |𝜙⟩ = |𝜙⟩ + |𝜓⟩</pre><pre>Addition is associative: (|𝜓⟩ + |𝜙⟩) + |𝜔⟩ = |𝜙⟩ + (|𝜓⟩ + |𝜔⟩)</pre><pre>Scalar multiplication is distributive for scalars and vectors:</pre><pre>(𝛼 + 𝛽)|𝜓⟩ = 𝛼|𝜓⟩ + 𝛽|𝜓⟩ where 𝛼,𝛽 ∈ ℂ</pre><pre>𝛼(|𝜓⟩ + |𝜙⟩) = 𝛼|𝜓⟩ + 𝛼|𝜙⟩ where 𝛼 ∈ ℂ</pre><pre>Scalar multiplication is associative:</pre><pre>𝛼(𝛽|𝜓⟩) = (𝛼𝛽)|𝜓⟩ where 𝛼,𝛽 ∈ ℂ</pre><p>Now, imagine that we could build a special unitary operator called <em>U</em> that could clone a qubit. This operator would take as input two qubits, one in an unknown state |𝜓⟩ and the other in a state such as |0⟩ that will serve as our target for copying. The cloning operator would then produce a copy of our qubit along with the original source qubit and both qubits will be in the same state |𝜓⟩.</p><p>So, let’s test our cloning operator and see what happens when we use it. We know that if we apply our cloning operator we should end up with a copy and our original qubit, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*wEsejsIVKe63bnmwzgXEHw.png" /><figcaption>Cloning operator</figcaption></figure><p>Recall that a qubit is simply a superposition of states|𝜓⟩ = α|0⟩+β|1⟩. So, let’s go ahead and replace |𝜓⟩ with α|0⟩+β|1⟩ and then take the product, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*HCFKMOYh0z612FWC2joNHA.png" /><figcaption>Taking the product of the cloning operator</figcaption></figure><p>Now, what would our cloning machine do if we cloned the expansion of |𝜓⟩? So let’s try that out and see what we get, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*72b09tuQZSdApmKQCwBajg.png" /><figcaption>Cloning the expansion of |𝜓⟩</figcaption></figure><p>Which is the same as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*G3pKCKoiCO6w10iYvb7vGg.png" /><figcaption>Rewriting |𝜓⟩ for cloning</figcaption></figure><p>Let’s compare the results of our two cloning operations:</p><ul><li>α²|00⟩ + αβ|10⟩ + αβ|01⟩ + β²|11⟩</li><li>α|00⟩ + β|11⟩</li></ul><p>As you can see the results are not the same. How can we make this work? The simple answer is that we cannot, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*E2FD0FxP3Azq_b9hfmby_g.png" /><figcaption>Cloning contradiction</figcaption></figure><p>We are left with a contradiction, either Quantum Mechanics is wrong in spite of decades of experimental evidence proving the contrary or we cannot reliably clone qubits that are in unknown quantum states. The sad fact is that no matter how hard we try we simply cannot clone qubits in unknown quantum states.</p><p>There is one subtlety to point out though. The “No Cloning Theorem” does not say that two qubits cannot be in the same quantum state. It just states that if you don’t know the state then you cannot build a machine to reliably clone it. The universe is free to allow qubits that are in the same state.</p><h4>Copying Qubits</h4><p>Now, what if we knew the state in advance could we clone it? The answer to this is yes. For example, if we knew we had to clone a qubit that was going to be in one of two possible superposition states |+⟩ or |−⟩, then we could perform some number of unitary transforms that would enable us to copy the state of the qubit.</p><p>Recall that the <a href="https://www.quantiki.org/wiki/basic-concepts-quantum-computation">Hadamard</a> transform is used to place a qubit into either the |+⟩ or |−⟩ superposition states depending upon whether operator is applied to a qubit either in the |0⟩ or |1 ⟩ basis state. The resultant vector has equal probabilities of returning either 0 or 1 when the qubit is measured. The diagrams below show the definition of |+⟩ and |−⟩ as well as the quantum circuit for generating them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/265/1*733fPoYOHgB43Z7WLRT7MA.png" /><figcaption>Quantum superposition |+⟩ and |-⟩</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/258/1*xoRzT-1W1SlqL3mkUG25Sg.png" /><figcaption>Quantum circuit for superposition</figcaption></figure><p>How are we able to copy the state of the qubit? We know that the two superposition states |+⟩ or |−⟩ must have been generated from either the |0⟩ or |1⟩ basis states. So, this means that if we were to take our qubit that was in the |+⟩ or |−⟩ state out of superposition, then our qubit would be in either the |0⟩ or |1⟩ basis state.</p><p>We can easily take our qubit out of superposition by applying the Hadamard transformation. Recall that quantum transformations are reversible, so applying the same unitary Hadamard transformation effectively undoes the prior Hadamard transformation, see the diagram below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*hIKP1XxsO7E7vydQXfMPCg.png" /><figcaption>Reversible transformations</figcaption></figure><p>Once the qubit is out of superposition we can perform a controlled not (CNOT) between our source qubit that we want to copy and the target qubit, where the source qubit acts as the control for the target qubit. Recall that the CNOT operator is a 2 qubit unitary transformation where one qubit acts as a control and the other serves as a target. If the control qubit is set to 1, then the target qubit is flipped.</p><p>Now that we have both qubits in the same basis state |0⟩ or |1⟩ we can perform a Hadamard transform to place both qubits into the same superposition state |+⟩ or |−⟩. The circuit diagram below shows the series of unitary transforms that we performed to copy a qubit in the|+⟩ state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*Tiq-NOn_KlMltz0i7wwYTg.png" /><figcaption>Copying a qubit in the |+⟩ basis</figcaption></figure><p>Here is the QISKit code to do perform our copying operation.</p><pre># Create an initial superposition + state<br>qc.h(q[0])</pre><pre># Take the qubit out of superposition<br>qc.h(q[0])</pre><pre># Perform a CNOT between the qubits<br>qc.cx(q[0], q[1])</pre><pre># Put the qubits into superposition and now the states are the same<br>qc.h(q[0])<br>qc.h(q[1])</pre><h4>Quantum Communication</h4><p>So given the restrictions and limitations on cloning qubits is there some way that we could communicate the state of an unknown qubit using some of the basic properties of quantum computing? Let’s say that Alice has a qubit in an unknown quantum state |𝜓⟩ = α|0⟩ + β|1⟩<em> </em>that she wishes to communicate to her colleague Bob, how might she do this? Well let’s pretend that we could somehow create a magical link between Alice’s qubit and a qubit that Bob has prepared in the |0⟩ basis state.</p><p>What type of special link might Alice create? Let’s imagine that she could setup a CNOT gate between her qubit and Bob’s qubit that could span any distance, as shown below. We know that such a gate is impossible to create, but let’s pretend that we could establish a CNOT gate between these qubits to see what happens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*jNviq0uylWEEqOf32VhoUQ.png" /><figcaption>CNOT gate</figcaption></figure><p>We can see that after the CNOT gate is applied the joint state is now <br>|𝜓⟩ = α|00⟩ + β|11⟩. So what if Alice were to measure her qubit ① in the |0⟩ and |1⟩ basis state? Well she would get either 0 or a 1 and the new joint state would be either |00⟩ or |11⟩ leaving Bob’s qubit ② in the state |0⟩ or |1⟩ which is not the same state as α|0⟩ + β|1⟩. So doing this type of measurement is clearly not going to help Alice communicate with Bob.</p><p>So does Alice have any other options? What if Alice were to measure her qubit ① in the |+⟩ and |−⟩ basis state? To do this we can write |0⟩ and |1⟩ in terms of |+⟩ and |−⟩, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/322/1*k4uggY4zS4MU6IXPZDLjLw.png" /><figcaption>Rewriting |0⟩ and |1⟩ in terms of |+⟩ and |−⟩</figcaption></figure><p>Now let’s go ahead and rewrite Alice’s qubit ① in terms of |+⟩ and |−⟩, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*2p5HUqKN5T6iiRcCXht50A.png" /><figcaption>Rewriting qubit in terms of |+⟩ and |−⟩</figcaption></figure><p>Let’s simplify this by collecting terms, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*AK8S-08kWXNB-lYzfGJCGg.png" /><figcaption>Simplifying and collecting terms</figcaption></figure><p>We can see that if Alice were to measure her qubit ① she would get either + or −, leaving Bob’s qubit ② either in the state α|0⟩ + β|1⟩ or α|0⟩ − β|1⟩.</p><p>In the case when Alice measures her qubit ① and gets a +, then Bob does not need to do anything to his qubit ② as it is exactly in the correct state <br>α|0⟩ + β|1⟩. If Alice, however, measures −, then Bob’s qubit is out of phase <br>α|0⟩ − β|1⟩.</p><p>Bob can change the phase of his qubit to get the correct state of <br>α|0⟩ + β|1⟩. Bob does this by applying the Pauli <em>Z</em> gate. Applying the <em>Z</em> gate flips the phase of Bob’s qubit. If you want to learn more about the Pauli gates check out this <a href="https://towardsdatascience.com/demystifying-quantum-gates-one-qubit-at-a-time-54404ed80640">link</a> and also my article on <a href="https://medium.com/qiskit/demystifying-superdense-coding-41d46401910e">Superdense Coding</a>. So all Alice needs to do is tell Bob which measurement she made, either + or −. If needed Bob then applies the phase shift <em>Z</em> gate to correct the phase , as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*XRYUSyvSM8FcSMm9_GKF_w.png" /><figcaption>Applying a phase shift using <em>Z</em> gate</figcaption></figure><p>How can Alice make her measurement in the |0⟩ and |1⟩ basis and be able tell whether she is measuring + or −? The answer is that Alice will apply the Hadamard <em>H</em> gate to her qubit ① prior to making her measurement, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*KgMURHbtIkHWQZRQE5Jjiw.png" /><figcaption>Applying the Hadamard gate</figcaption></figure><p>The Hadamard gate projects + onto the measurement of 0 and − onto the measurement of 1. Remember that once Alice makes her measurement she will destroy her qubit, but her qubit’s state will have shifted to Bob’s qubit. The code below shows how we can measure in the + and − basis and apply a phase flip if needed.</p><pre># Prepare an initial state for qubit ① using a single unitary<br>qc.u1(0.5, q[0])</pre><pre># Perform a CNOT between qubit ① and qubit ②<br>qc.cx(q[0], q[1])</pre><pre># Measure qubit ① in the + - basis<br>qc.h(q[0])<br>qc.measure(q[0], c[0])</pre><pre># If needed Perform a phase correction to qubit ②<br>if c[0] == 1:<br>   qc.z(q[1])</pre><p>So what does this tell us about transmitting qubits? It tells us that if we had some way to create a remote CNOT between Alice’s qubit and Bob’s qubit we could communicate. The good news is that we do have a way to do this and that is through entanglement. So now let’s see how we can use entanglement to establish a remote CNOT operation and teleport a qubit.</p><h4>Quantum Teleportation</h4><p>How will this work? What we are going to do is to create a special state of entanglement between three qubits where one of our qubits holds the unknown information we want to send and the other two will be an entangled pair of qubits that will be shared between the sender and the receiver of the information.</p><p>We will be performing a series of measurements on two of the qubits which will end up taking them out of entanglement. These measurements and our knowledge of entangled states will enable us to “teleport” our source qubit to the destination without loss of information. We will, however, be destroying the source qubit that contains the information that we want to send as part of our teleportation protocol.</p><p><strong>Setting up the Initial States</strong></p><p>In our scenario let’s pretend once again that Alice would like to send Bob a qubit that is in some unknown state. We know that Alice cannot directly clone the qubit, because of the “No Cloning Theorem”. Alice, however is a very clever quantum coder and knows that she can use the nature of quantum entanglement to help her achieve her goal.</p><p>The first thing that Alice does is to call up her friend Eve to help her and Bob out. She asks Eve to prepare a pair of entangled qubits for her and Bob and instructs Eve to give her one of the qubits and send Bob the other one, as shown in the circuit diagram below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*pn53RT2cYbCprFCu0oJ_ew.png" /><figcaption>Initial state for quantum teleportation</figcaption></figure><p>In the circuit diagram the qubit labeled ① is the qubit that contains the unknown information that Alice wants to teleport to Bob. The qubits labeled ② and ③ are the entangled qubits that Eve has prepared for Alice and Bob. The joint state of our 3 qubit system is simply the product of the qubits, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/1*ZV8KE8xQT0rJXlCfI0VLgA.png" /><figcaption>Initial join 3 qubit state</figcaption></figure><p>Here is the QISkit code for setting up the entangled pair of qubits and the initial state of the qubit that we will be teleporting.</p><pre># Prepare an initial state for qubit ① using a single unitary<br>qc.u1(0.5, q[0])</pre><pre># Prepare an entangled pair using qubit ② and qubit ③<br>qc.h(q[1])<br>qc.cx(q[1], q[2])</pre><pre># Barrier to prevent gate reordering for optimization<br>qc.barrier(q)</pre><p><strong>Creating the Remote Controlled Not and Applying Correction</strong></p><p>Now that we have prepared our qubits, the next thing that Alice does is to perform a CNOT operation between qubit ① that she wishes to teleport to Bob and her half of the entangled pair of qubits ② that she shares with Bob, as shown in the circuit diagram below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*OSBujDf_iNbqrC2ZwxbbnA.png" /><figcaption>Applying a CNOT for quantum teleportation</figcaption></figure><p>Let’s see what effect the CNOT operation now has on the joint state of the 3 qubit system, as shown below. As we can see when qubit ① is set to 1 as indicated by the green rectangle, the target qubit ② is flipped, as indicated by the red rectangles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*mDo5VYFMnORMXHbtjyoMxg.png" /><figcaption>Effect of CNOT</figcaption></figure><p>So how does this help Alice in communicating with Bob? Well at this point what would happen if Alice were to measure qubit ②, as shown in the circuit diagram below?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*iflNCsz81fn__NQJTKathQ.png" /><figcaption>Measuring half of the entangled qubit pair</figcaption></figure><p>Alice would get either a 0 or a 1. What does this measurement tell Alice? It tells Alice that the joint remaining state of qubits ① and ③ are in either one of the two possible states, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/321/1*4tbQ4dojDfCf-a2Q0H0TDg.png" /><figcaption>Possible state configurations</figcaption></figure><p>Remember Alice is trying to send Bob the state |𝜓⟩ = α|0⟩ + β|1⟩<em>. </em>However, when Alice measure qubit ② and gets a 1 she knows that qubit ③ has somehow become flipped from a 0 to a 1. At this point Alice writes this measurement down and tells Bob what she measured. Alice and Bob know that they can easily flip a qubit by applying the Pauli <em>X</em> gate, as shown below. If you want to learn more about the Pauli operators follow this <a href="https://en.wikiversity.org/wiki/Pauli_matrices">link</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*B9jwCcGUXkaoT6LaXtl8oQ.png" /><figcaption>Applying bit flip X gate</figcaption></figure><p>Here is the QISKit code for establishing the CNOT, measuring the qubit, and performing a bit flip if necessary.</p><pre># Perform a CNOT between qubit ① and qubit ②<br>qc.cx(q[0], q[1])</pre><pre># Measure qubit ② in the computational basis<br>qc.measure(q[1], c[1])</pre><pre># If needed Perform a bit flip correction to qubit ③<br>if c[1] == 1:<br>    qc.x(q[2])</pre><p><strong>Applying Phase Correction</strong></p><p>The next thing that Alice does is to perform a Hadamard transformation on qubit ① just like she did before so that she can tell Bob if he needs to perform a phase flip on his qubit ③, as shown in the circuit diagram below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*Nc4CuQ3xGX_XoDSnFoq32g.png" /><figcaption>Applying phase correction with Z gate</figcaption></figure><p>let’s dig into this a little deeper to see what happens to the state of our 3 qubit system after applying the Hadamard gate. Recall from earlier that applying the Hadamard operator to the qubit basis states |0⟩ and |1⟩ transforms our qubit into one of the following two superposition states.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/1*UHTmihol1EnpGtf4wbq3pg.png" /><figcaption>Superposition states</figcaption></figure><p>Let’s now substitute the two superposition states for <em>H</em>|0⟩ and <em>H</em>|1⟩ into our previous 3 qubit state description, as shown below and indicated by the red rectangle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*d8-KSlfvXDu0zKPIAuJSVg.png" /><figcaption>State configuration after Hadamard gate</figcaption></figure><p>Now let’s take the product and see what the state of our 3 qubit system is, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*bj8yDHIg3iZRG58rhlTU-Q.png" /><figcaption>Taking the product after Hadamard gate</figcaption></figure><p>To make it easier to see what is happening let’s refactor such that we group qubits ① and ② together and isolate qubit ③, as shown below and indicated by the red rectangle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/1*gVE_b1Dzj_R8Lg7PNnB_wQ.png" /><figcaption>Possible states of teleported qubit</figcaption></figure><p>We see that qubit ③ contains in all but three case the original state of qubit ①. What we have effectively done is teleported the state from qubit ① to qubit ③. We are still left with one remaining issue though.</p><p>Recall that we are trying to teleport the state of qubit ① which was <br>|𝜓⟩ = α|0⟩ + β|1⟩ and we already took care of the cases where we needed to flip our qubit, so all that remains is to take care of the cases where Bob needs to flip the phase of his qubit using the Pauli <em>Z</em> gate.</p><p>Earlier we saw that Alice was able to do determine whether a phase flip was needed by measuring the qubit in the |+⟩ and |−⟩ basis. So Alice now performs a measurement after applying the Hadamard gate which enables her to measure a 0 when the qubit is + and 1 when the qubit is − and then gives this value to Bob for him to determine whether he needs to perform a phase flip, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*an9uffgT4AkLSVc_5EbUeA.png" /><figcaption>Full circuit for quantum teleportation</figcaption></figure><p>Here is the QISKit code for measuring the qubit in the + − basis and performing a phase correction if necessary.</p><pre># Measure qubit ① in the + - basis<br>qc.h(q[0])<br>qc.measure(q[0], c[0])</pre><pre># If needed Perform a phase correction to qubit ③<br>if c[0] == 1:<br>    qc.z(q[2])</pre><h4>Summary</h4><p>So there we have it! Alice is able to successfully teleport a qubit to Bob. There are a few important takeaways from the teleportation protocol that we should briefly mention:</p><ul><li>Alice and Bob did not communicate faster than the speed of light. Alice had to tell Bob what her two measurements were, and this had to be done over some classical communication channel, which by definition is slower than the speed of light.</li><li>Alice ends up destroying her qubit as she teleports the information to Bob and therefore we did not violate the no cloning theorem.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=919cbd673074" width="1" height="1" alt=""><hr><p><a href="https://medium.com/qiskit/untangling-quantum-teleportation-919cbd673074">Untangling Quantum Teleportation</a> was originally published in <a href="https://medium.com/qiskit">Qiskit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying Superdense Coding]]></title>
            <link>https://medium.com/qiskit/demystifying-superdense-coding-41d46401910e?source=rss-f36f0223c032------2</link>
            <guid isPermaLink="false">https://medium.com/p/41d46401910e</guid>
            <category><![CDATA[superdense-coding]]></category>
            <category><![CDATA[entanglement]]></category>
            <category><![CDATA[superposition]]></category>
            <category><![CDATA[quantum-entanglement]]></category>
            <category><![CDATA[quantum-computing]]></category>
            <dc:creator><![CDATA[Steve Atkin]]></dc:creator>
            <pubDate>Mon, 25 Jun 2018 22:18:31 GMT</pubDate>
            <atom:updated>2018-12-21T12:17:58.091Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MOUXHcdk-0dKB0uT5n5JQg.jpeg" /></figure><p>In this article I will help to demystify the magic behind quantum superdense coding along with some sample code that you can run yourself on <a href="https://quantumexperience.ng.bluemix.net/qx/experience">IBM’s Quantum Experience</a> so you can see it in action. We will be using <a href="https://github.com/QISKit/qiskit-core">QISKit</a> so download and install the SDK.</p><p>In a nutshell <a href="https://cs.uwaterloo.ca/~watrous/LectureNotes/CPSC519.Winter2006/03.pdf">superdense coding</a> enables us to send two classical bits of information by only manipulating a single quantum bit known simply as a qubit.</p><p>I will walk you through the math, quantum circuits, and code. Along the way, I will explain what is happening in each step. Before I get started I assume that you have some knowledge of qubits, Dirac notation, classical bits, and linear algebra. If you are looking for a tutorial on Quantum Computing I encourage you to check out the <a href="https://quantumexperience.ng.bluemix.net/qx/tutorial?sectionId=full-user-guide&amp;page=introduction">IBM Q Experience</a> documentation.</p><h4>Introduction</h4><p>To start our journey into understanding superdense coding, we need to first discuss two fundamental quantum computing concepts: superposition and entanglement. I will only provide a brief overview of these concepts. If you want a more detailed explanation, then take a look at this excellent <a href="http://www.monoidal.net/papers/tutorialqpl-1.pdf">tutorial</a> from Benoit Valîron.</p><p>Before we dive into the foundational concepts let’s look at some Python code that we will use in our examples. In the following code fragment, we create two types of registers: quantum and classical. The classical registers will be used to store the results of measuring our quantum registers. The quantum registers are our ‘qubits’ and we will manipulate them in our program to achieve certain desired effects. The quantum circuit will be used to wire our qubits and operations together. You can find a copy of the code that we will use throughout the article <a href="https://github.com/stevenatkin/quantum">here</a>.</p><pre>from qiskit import QuantumCircuit, ClassicalRegister, QuantumRegister</pre><pre>from qiskit import available_backends, execute</pre><pre># Create two quantum and classical registers</pre><pre>q = QuantumRegister(2)<br>c = ClassicalRegister(2)<br>qc = QuantumCircuit(q, c)</pre><h4>Superposition</h4><p>Quantum <strong>superposition</strong> is a special qubit probabilistic state where there is an equal chance of obtaining the binary value 0 or 1 when the qubit is measured. This state is constructed by applying a special operation to a qubit called the Hadamard operator. The Hadamard operator is a unitary transformation that causes a qubit that is either |0⟩ or |1⟩ in the standard basis to be transformed into a new state that is called superposition.</p><p>As a refresher recall the Dirac and vector notation for |0⟩ and|1⟩ and the general description of a qubit as a linear combination of basis states, as shown in the diagrams below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/152/1*70onhKctRXvbW7xbdEZLFg.png" /><figcaption>Dirac and vector notation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/224/1*m1PP-YULq86G_YpN7ntgxg.png" /><figcaption>Qubit linear combination of basis states</figcaption></figure><p>In the diagrams below the matrix corresponding to the <a href="https://www.quantiki.org/wiki/basic-concepts-quantum-computation">Hadamard</a> operator is applied to a qubit in the |0⟩ basis state. The resultant vector has equal probabilities of returning either 0 or 1 when the qubit is measured.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/210/1*2QpdvCb2HKUmRUqV6_Hgiw.png" /><figcaption>Hadamard operator</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/1*cTFF5F9Xbb-Aip7tDGEooA.png" /><figcaption>Applying the Hadamard operator</figcaption></figure><p>The probabilities are calculated by taking the sum of the squares of the absolute values of the magnitudes. In this case, we obtain a 50% chance of measuring either 0 or 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/223/1*PiezwmGypkyYSYnB_0qXoA.png" /><figcaption>Calculating probabilities</figcaption></figure><p>In quantum circuit diagrams the Hadamard operator is often referred to as the Hadamard gate and is represented by an <em>H </em>enclosed in a box. The diagram below is the quantum circuit that corresponds to the previous matrix operations.</p><p>Here we see the Hadamard operator being applied to a qubit in the |0⟩ basis followed by a measurement to obtain the classical bit value 0 or 1. The code fragment shows how to apply the Hadamard operator to one of our qubits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*1MWFAFvyYP7q7FM6BgGjLQ.png" /><figcaption>Quantum circuit with Hadamard gate</figcaption></figure><pre># Add a Hadamard gate on qubit 0 to create a superposition</pre><pre>qc.h(q[0])</pre><h4>Entanglement and Bell States</h4><p>Quantum <strong>entanglement</strong> is a special state of strong correlation between two qubits even when the qubits are physically separated from each other by great distances. The correlation is so strong that the qubits appear to be communicating faster than the speed of light.</p><p>Measuring one of the qubits instantaneously determines the value of the other even when the other qubit is in a probabilistic state. This idea is often the most difficult to comprehend as it is completely at odds with our everyday experiences and may take some time getting used to.</p><p>As a point of reference, Albert Einstein was never comfortable with the idea of non-deterministic measurements and entanglement, referring to this as “spooky action at a distance”. Einstein argued that Quantum Mechanics must be incomplete, because we know that no information can be communicated faster than the speed of light. There must be some hidden variable that we are unable to detect that explains the strong correlation and the appearance of faster than light communication.</p><p>In 1964 <a href="https://en.wikipedia.org/wiki/John_Stewart_Bell">John Bell</a> devised an experiment to test whether there was a hidden variable being used that could explain the strong correlation. I will not go into the details of the experiment, but Bell proved that there was no such hidden variable being shared between two entangled qubits and the qubits are not communicating faster than the speed of light. If you want to learn more you can take a look at the details <a href="https://arxiv.org/pdf/1408.1826.pdf">here</a>. The important takeaway from this experiment is that there are four unique distinguishable orthogonal entangled states as shown below that are often called the Bell states (Φ+,Φ−,Ψ+,Ψ−).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*6NJZx5D4IZ9wIZNCg1yrAQ.png" /><figcaption>Bell states</figcaption></figure><p>What do these Bell states mean? These Bell states tell us that there is an equal probability of a pair of entangled qubits either being in the first configuration or the second configuration in any one of the given four Bell states. For example, in the first Bell state Φ+ the qubits have an equal chance of being either in the |00⟩ or |11⟩ configuration, while in the third Bell state Ψ+ the qubits have an equal chance of being either in the |01⟩ or |10⟩ configuration.</p><p>The notion of entanglement that is often difficult to comprehend is that the entangled state cannot be decomposed into separate states from each of the two qubits. The diagram below illustrates how we end up with a contradiction when we try to take the product of two qubits in an attempt to generate the Φ+ state and therfore our entangled state is some new “mixed state” that is not describable by the individual qubit states.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*XM1_7e7wFPkKgjy7ZHRu9g.png" /><figcaption>Contradiction decomposing and entangled state</figcaption></figure><p>At this point you are probably asking yourself how do two qubits become entangled and how is this useful? Before I dive into answering these questions I need to introduce another quantum operator called the controlled not operator or CNOT.</p><p>The CNOT operator is a 2 qubit unitary transformation where one qubit acts as a control and the other serves as a target. If the control qubit is set to 1, then the target qubit is flipped. The matrix shown below describes this operator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/292/1*WncWhoFoHr_f1xURVJ-Oqw.png" /><figcaption>Controlled not operator</figcaption></figure><p>In a quantum circuit diagram the CNOT gate appears as a black dot on the quantum wire for the control qubit with a line and circle connecting it to the target’s qubit quantum wire, as shown in the diagram below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/175/1*YSygtzhudlHVqYpcPzjo6w.png" /><figcaption>Quantum circuit with controlled not gare</figcaption></figure><p>So now back to the first of our earlier questions that being, how do we create a pair of entangled qubits? Simply put we are going to combine the use of the Hadamard gate with the CNOT gate. The following quantum circuit creates an entangled pair of qubits in one of the four Bell states that we listed earlier, as shown below. The Bell state that is produced is contingent upon the initial states of the qubits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*HDFBqFj-MsBK_0-GyxAADw.png" /><figcaption>Quantum circuit for entanglement</figcaption></figure><p>The diagram below shows the effect of combining the Hadamard operator and the CNOT gate to generate the first Bell state Φ+ given both qubits start in the |0⟩ initial state. If we wanted to generate any of the other Bell states, then we would simply change the initial states of the qubits. The code fragment below shows us adding the CNOT gate to our qubits, remember that qubit 0 is already in superposition from the earlier step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*3LW7eKyvTJ-yIbiGRnIWDw.png" /><figcaption>Generating a Bell state</figcaption></figure><pre># Add a controlled not (CX) with qubit 0 as control and qubit 1 as target<br># This causes the two qubits to become entangled </pre><pre>qc.cx(q[0], q[1])</pre><p>So back to our second question of how will this be useful? Given that we can vary the Bell states that get generated based upon the initial qubit conditions we can use that as a foundation for communicating information.</p><p>Let’s assume for the moment that we wanted to recover the initial conditions of the qubits prior to entanglement how would be able to do that? The answer to that is very straightforward. We simply need to mirror the use of the controlled not and Hadamard gates, as shown in the diagram below. By doing this we can undo the effects of the prior Hadamard and CNOT gates that put the qubits into an entangled state. This is possible, because quantum gate operators are unitary transformations that are reversible. Reapplying these operators returns us to the original initial qubit conditions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*QfleZq0y3PiYmTubwztUVw.png" /><figcaption>Reversible quantum circuit</figcaption></figure><p>This means that if we were to give someone a pair of entangled qubits in some unknown Bell state all they would have to do to recover the initial conditions is to simply apply the CNOT and Hadamard gates to the pair of qubits. Once this is performed all that is left to do is to measure the qubits which reveals the initial qubit states. In the next section, we are going to extend this idea a little bit to cleverly communicate two classical bits of information by only manipulating one of the entangled qubits.</p><h4>Superdense Coding</h4><p>Now we are armed with nearly all the information that we need to understand superdense coding. The only remaining details that we need to discuss are two quantum operators (<em>Pauli</em> <em>X </em>and <em>Pauli</em> <em>Z</em>) that are collectively known as <a href="http://www-bcf.usc.edu/~tbrun/Course/lecture11.pdf">Pauli operators or gates</a>, as shown in the diagram below. These gates are single qubit gates and as we will they see simply rotate our qubit vector. With these operators, we can explain how the superdense coding algorithm works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/176/1*IEgU-zI9vSNJXUYHwzoS3g.png" /><figcaption>Pauli X and Z operators</figcaption></figure><p>In most literature on this subject the concept of superdense coding is described as two colleagues (Alice and Bob) wanting to communicate with each other using a pair of entangled qubits. In this description, the entangled pair of qubits have been prepared for them in advance by someone else and each of them receives one of the qubits from the entangled pair.</p><p>Alice would like to send Bob a 2 bit classical message, but she only has her single qubit from the entangled pair. How can she send a two bit classical message using only one qubit? What Alice will cleverly do is to perform one or more Pauli gate operations on her qubit and then send her single qubit to Bob that will enable Bob to uncover the two bit classical message.</p><p>Bob being equally clever knows that the two qubits are entangled and therefore the two qubits must be in one of the four Bell states. So, all Bob must do to recover the message is figure out which Bell state the qubits are in. How does Bob figure out which Bell state the qubits are in? The answer is rather easy, all Bob must do is undo the entanglement. As we saw earlier we can apply the CNOT gate followed by a Hadamard gate to undo the entanglement and recover the message from Alice.</p><p>Let’s go ahead and work through a detailed example of what Alice and Bob do. In our example, Alice wants to send Bob the classical 2 bit binary message ‘01’. To do this Alice is going to apply the Pauli <em>X</em> gate to her entangled qubit which acts like a classical NOT operator. The reason Alice wants to do this is to change the Bell state of the qubits.</p><p>In the diagram below I have worked out the effects of this operation prior to her sending her qubit to Bob. As you can see Alice has transformed the original qubits that were in the first Bell state Φ+ into the third Bell state Ψ+, see the earlier Bell state diagram. The quantum circuit diagram shows where the Pauli <em>X</em> gate is applied. The code fragment shows how the Pauli <em>X</em> gate is applied to qubit 0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*zX33v1qlF7TGjUebV08ZCw.png" /><figcaption>Changing the Bell state</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*W3LHvksOzWucDF95Vrjh9w.png" /><figcaption>Quantum circuit with Pauli X gate</figcaption></figure><pre># Apply the (X) operator to qubit 0 to change the Bell state<br>qc.x(q[0])</pre><p>Once Bob receives Alice’s qubit he starts to undo the entanglement by first applying a CNOT gate to the pair of qubits, where Alice’s qubit acts as the control and Bob’s acts as the target. In the diagram below I show the effect that this has on the qubits. As you can see we now have one qubit that is in superposition and the other that is in the |1⟩ state. The circuit diagram shows where the CNOT gate is being applied. The code fragment shows how the CNOT gate is applied to qubits 0 and 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*U_eIwW_xsXZIguPVbCmn3w.png" /><figcaption>Applying controlled not to reval superposition</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*9UKMU2UuS69ANy2YrsqnSg.png" /><figcaption>Quantum circuit with controlled not gate</figcaption></figure><pre># To get the Bell state apply the (CX) operator on qubit 0 and 1</pre><pre>qc.cx(q[0], q[1])</pre><p>All Bob has to do now is undo the superposition of the qubit. We know that quantum operators are reversible unitary transformations, so Bob applies the Hadamard operator on the qubit that is in superposition. Once Bob takes the qubit out of superposition the qubit will be in the basis state|0⟩. Now Bob has both qubits |01⟩ which is the message that Alice wanted to send him. The diagram below fully depicts the quantum circuit for superdense coding.</p><p>The code fragment shows how we apply the Hadamard operator to qubit 0 to undo the superposition and the final remaining code shows how to execute our quantum circuit on the simulator. You can reference the documentation to see how to execute your program on one of the available quantum processors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*JKgoRY7hgINbR0r_dg1T2A.png" /><figcaption>Quantum circuit for superdense coding</figcaption></figure><pre># Apply the H operator to take qubit 0 out of superposition<br>qc.h(q[0])</pre><pre># Add a Measure gate to obtain the message<br>qc.measure(q, c)</pre><pre># Compile and run the quantum circuit on a simulator backend<br>job_sim = execute(qc, &quot;local_qasm_simulator&quot;)<br>sim_result = job_sim.result()<br>print(sim_result.get_counts(qc)</pre><p>To send messages with other binary values all that needs to be done is to replace the Pauli <em>X</em> operator with another operator sequence according to the table I have provided below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e3f6eaabe68e752a7c8bc4ca87acda4c/href">https://medium.com/media/e3f6eaabe68e752a7c8bc4ca87acda4c/href</a></iframe><p>Hopefully I have taken some of the mystery out of superdense coding. As we have seen, superdense coding is very easy and simple to follow once you understand superposition and entanglement. In my next post, I will explain and provide some sample code for implementing quantum teleportation which is the other side of the coin to superdense coding.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41d46401910e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/qiskit/demystifying-superdense-coding-41d46401910e">Demystifying Superdense Coding</a> was originally published in <a href="https://medium.com/qiskit">Qiskit</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When Speed and Quality Collide]]></title>
            <link>https://medium.com/@stevenatkin/when-speed-and-quality-collide-f43655d9f99f?source=rss-f36f0223c032------2</link>
            <guid isPermaLink="false">https://medium.com/p/f43655d9f99f</guid>
            <category><![CDATA[continuous-delivery]]></category>
            <category><![CDATA[translation]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[localization]]></category>
            <dc:creator><![CDATA[Steve Atkin]]></dc:creator>
            <pubDate>Wed, 14 Mar 2018 11:24:14 GMT</pubDate>
            <atom:updated>2018-03-25T20:19:28.315Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to survive multilingual continuous delivery</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uaHT5S1XEivLKW5ffePQmQ.jpeg" /></figure><h3>Anouk Perquin and Steve Atkin</h3><p><em>The 5 essential questions about agile translations</em></p><h3>Goal</h3><p>This article aims to give insight on the impact on localization and translation processes when software is deployed continuously and addresses the paradigm shift that is required to prevent translation from becoming a bottleneck to rapidly delivering software.</p><h3>5 things you’ve always wanted to know</h3><ul><li>What is Continuous Delivery?</li><li>Why Continuous Delivery?</li><li>How does this impact translation?</li><li>What needs to change?</li><li>What can we learn from Agile software development?</li></ul><h3>What is Continuous Delivery?</h3><p>The software industry has been in a revolutionary transition from building software using <a href="https://en.wikipedia.org/wiki/Waterfall_model">waterfall</a> and highly structured methodologies to more lean, <a href="https://en.wikipedia.org/wiki/Agile_software_development">agile</a>, and highly fluid methodologies. Current methodologies look to release continuously and frequently deliver incremental change.</p><p>Development teams do this by continuously deploying small functional increments of their product in short time boxed iterations that are commonly known as ‘sprints’ and having people test it through actual deployed use. Teams use the feedback of these users to create the next incremental capability that is also deployed as early as possible.</p><p>The effect of this is that instead of spending months to create a huge software release, teams deploy small frequent updates, sometimes multiple times a day.</p><h3>Why Continuous Delivery?</h3><p>The advantages of taking this new approach to software development have proven to be:</p><p><em>Minimize the time to market</em></p><p>Business value increases with every day an application is on the market sooner. The sooner you can start selling your product, the sooner it will bring in money.</p><p><em>Minimize the risk and cost</em></p><p>The chance that your application will be more succesful increases. This is because, in early stages of product development, user feedback is used to see whether new capabilities will be liked, accepted, and used in the marketplace. This prevents costly development to take place on functionalities that will never be used, as has happened with 80% of software features that were developed in the waterfall processes.</p><h3>How does this impact translation?</h3><p>This approach to software development is completely at odds with today’s translation and localization processes. To reach broader markets requires software to be translated into the users’ languages. The need to spend a lot of time and money on translation is often in direct opposition with the desire to minimize the overall cost in creating applications. This is especially apparent when new capabilities are being delivered that are unknown as to whether they will be developed further.</p><p>In a traditional waterfall development process translation and localization is often delayed until near product release. User interfaces and most product documentation is generally frozen close to final completion before translation even begins. The translation phase typically becomes a bottleneck for delivery as this process often takes many iterations and requires deep education by the translators to ensure that they have a proper understanding of the context of the application in order to properly translate and localize the software. This means that the overall release time of new capabilities, though already completed in English, are delayed for several weeks or even months, because translations are not yet done.</p><p>As in a continuous delivery cycle, the value of what is released is largely determined by the speed that it is deployed, delaying a product release because of translation is unacceptable. This means that translation and localization processes must adopt a continuous delivery model, just like software development processes have, and incrementally deliver translation with minimal human overhead.</p><h3>What needs to change?</h3><p>This new way of working now requires us to rethink how translation fits into modern development strategies. Translators need to take on new roles that extend beyond pure translation:</p><ul><li>Translators need to quickly determine and understand the context of an application without having to engage the software development team in lengthy training sessions.</li><li>Translators now need to decide how and when to make use of machine translation and quality levels needed in order to reach the goal of the content.</li><li>Translators also need to collect and provide early feedback to the development team as it relates to UI design and linguistic implications of features and capabilities.</li></ul><p>This means that for teams to be able to capture the wider marketplace beyond English, translators now need to be viewed as peers in the development process rather than as simply external translation providers in order to quickly deliver capability across multiple languages simultaneously.</p><h3>What can we learn from Continuous Delivery?</h3><p>Many principles of agile methodologies in software development can be transferred to translation processes in order to comply to the current need for speed.</p><p><em>Maximize the work not done</em></p><p>The notion of translation quality is substantially changing from creating the most accurate translation to creating the translation that has the ‘most value’. The value is defined by the combination of usability and time to market. Clearly define the quality criteria needed in order to achieve ‘minimally viable products’ across the supported languages.</p><p>It is important to understand that the notion of ‘quality’ is highly fluid and can vary across both functional features as well as across languages. Also, realize that the first version of a translation that merely complies with the speed asked for by the Continuous Delivery process may only live up to minimal quality criteria and differ from the final version of the translations.</p><p><em>Create and empower multidisciplinary teams</em></p><p>Include the translators in the team so they can participate in how the goals are to be reached when it comes to multilingual deployment and they are aware of the capabilities that are to be translated.</p><p><em>Embrace change</em></p><p>Make sure change is at the core of your process. Content is dynamic and the need to consolidate the source before starting translation unnecessarily delays deployment.</p><p><em>Constantly solicit feedback</em></p><p>Don’t be afraid to publish early versions of your translations. Test whether your content reaches your goals and make sure you can implement feedback easily and quickly.</p><h3>Conclusion: a paradigm shift</h3><p>For a lot of people that have been working in the translation and localization industry, it is not an easy step to let go of the traditional processes that have worked well for many years. It is often difficult to allow products that may have imperfect translations to go out, as this is something that seems completely at odds with the high standards that the industry has established. Typically many QA cycles are usually applied before translations are published. These processes have worked well in the past where constant change was less of a factor, but in today’s rapid and shortened development cycles these processes no longer meet current needs.</p><p>What we need to realize is that the notion of quality is now more fluid. Our emphasis needs to shift to the concept of usability and the only people that can really tell you whether your content is usable, are your users. The crowd will tell you what you should be spending your scarce time and money on to maximize the user experience.</p><h3>Practice what you preach</h3><p>Was this article useful to you? Do you have any questions? What else would you like to know? How can we improve the usability of this article? Your feedback is invaluable to us. Please share it through the medium platform or contact the authors directly through LinkedIn.</p><p><a href="https://www.linkedin.com/in/anouk-perquin-6568319/">Anouk Perquin</a></p><p><a href="https://www.linkedin.com/in/steven-atkin-134a0a9/">Steven Atkin</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f43655d9f99f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Next Advertising Frontier]]></title>
            <link>https://medium.com/@stevenatkin/the-next-advertising-frontier-26f3ac8b3cb7?source=rss-f36f0223c032------2</link>
            <guid isPermaLink="false">https://medium.com/p/26f3ac8b3cb7</guid>
            <category><![CDATA[advertising]]></category>
            <category><![CDATA[marketing]]></category>
            <dc:creator><![CDATA[Steve Atkin]]></dc:creator>
            <pubDate>Fri, 14 Apr 2017 18:14:19 GMT</pubDate>
            <atom:updated>2017-04-14T18:14:19.904Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jR7n5hy02XgvlSfY9wAM7Q.jpeg" /></figure><h3>Tracy De Cicco and Steve Atkin</h3><p>In this article we explore the seismic shift that is occurring in digital advertising as a result of cognitive computing, social media, and mobile technologies. We come to this topic somewhat accidentally and is largely based on recent personal experiences in online shopping. In our case, we had been considering some major purchases and had done some initial research on the web and for days and weeks afterward had been bombarded with the brand ads everywhere we went on the internet. The extent of the advertising footprint led us to consider and examine the radical changes taking place in ad personalization and customization. It is our position that the next wave of personalization will do much more than simply selecting relevant ads based on user profiles and IP addresses, but will allow for dynamic ad content creation based on personality profiling and tone analysis. A landscape that will be hypertuned and personalized and less ‘vanilla’.</p><h3>Historical Perspective</h3><p>In the early days of digital advertising, content providers focused on selling ad real-estate via banner ads to subsidize or offset the cost of creating premium content for users. This opened up new opportunities for marketers to capitalize on audience specific demographics based upon the content being provided by a web site. This perspective really changed the whole advertising world as it enabled ad seekers to better identify their target markets and obtain better results versus blindly placing ads.</p><p>The real revolution though came from the introduction of technology to count and collect views and clicks on ads. This enabled marketers to get near instantaneous feedback on how effective an ad campaign was performing without having to wait until the campaign was over to gauge effectiveness. This real time nature also had an impact on how advertisers paid for ads. With banner ads, advertisers typically paid a flat fee to host the ad for some set specific period of time. With the ability to gauge ad effectiveness, however, the monetization model shifted to one based on actual views and clicks<a href="#_ftn1">[1]</a>.</p><p>As the number of sites on the internet exploded, advertisers saw this as an opportunity to utilize search engines as a means to gain even greater granularity into targeting specific demographic groups based upon search queries. Services such as Google’s AdWords and Facebook Paid Ads enabled advertisers to bid on keywords that they want to associate with their ads to better match their targeted demographic and get their website ranked higher in search results<a href="#_ftn2">[2]</a>.</p><p>To gain even more effectiveness in ad campaigns, advertisers desired to garner as much information about users as possible to better align their ads to their targeted demographic. This became possible via cookies that allowed marketers to track both web sites visited as well as an individual’s search history. This information is frequently used to build profiles of users and infer social behaviors as well as other demographics. With these profiles, advertisers can use this information to target specific consumer groups and have ads follow users wherever they go through remarketing. It is at this point that we start to see users express concern around data privacy and use of personally identifying information<a href="#_ftn3">[3]</a>.</p><p>Naturally, the use of personally identifying information is not unique to the online world. One example of using personally identifying information comes from Target. A Target marketing analyst had the assignment and mission to tap Target’s deep treasure trove of data, namely their own data tied to the Target Guest ID number, which included data related to Target activities, such as credit card usage, survey information, and customer help line data. Also linked to this master ID was demographical information as well as more ‘exotic’ data that Target could buy and procure, as an example, the magazines you read, if you’ve ever declared bankruptcy, what types of coffee brands you prefer, and political leanings.</p><p>Based upon some early analysis, Target learned that there was a strong linkage between unscented lotion and the beginning of a woman’s second trimester of pregnancy. Additionally, they learned that pregnant women purchased large quantities of supplements like calcium in the first 20 weeks of pregnancy. From this analysis, Target was able to predict someone’s pregnancy based upon analyzing sales information of 25 products. Based on these findings, Target decided to start sending out baby-related coupons to women that they believed were likely to be pregnant.</p><p>One recipient of these coupons happened to be a teenage girl that was still in highschool. The parents having noticed that their daughter was receiving these coupons contacted Target to launch a complaint that Target was actively trying to encourage their daughter to have a child. Only a few weeks later the parents learned that their daughter was actually pregnant. One can only imagine the kinds of predictions that will be possible when traditional, personally-identifying information is combined with information that can be captured online.</p><p>Some companies, however, have undertaken a more direct approach, where people are compensated for providing their data to better develop user profiles. This has included data points that go beyond the typical web sites visited and browser search history, but has included purchase history, emails, texts, and in some cases even banking information. One example of this strategy comes from Sears.</p><p>Sears Holdings, invited some users of sears.com and kmart.com to become members of a special group of customers that allowed Sears to have access to personal information in exchange for paying them $10. Sears asked these customers to “participate in exciting, engaging, and ongoing interactions — always on your terms and always by your choice.” All the consumer had to do was download ‘research’ software that would track what turned out to be their every move. Information collected and transmitted included all of the customers’ web browsing (not just Sears sites), online purchases, business transacted during secure sessions, online banking data, completion of online application forms, and some of the customers’ web-based email and instant messages.<a href="#_ftn4">[4]</a> Data collected included some offline computer usage as well.</p><p>This type of data collection activity caught the attention of the Federal Trade Commission (FTC). The FTC subsequently launched a complaint that Sears’ actions were unfair and deceptive. They felt that Sears did not adequately disclose the actual functions of the tracking application and that a reasonable understanding of the functions would be material to consumers when deciding whether to participate in the community. The FTC determined that Sears’ failure to disclose the program details in a more clear, prominent and meaningful manner constituted unfair or deceptive acts.<a href="#_ftn5">[5]</a> In the Sears matter, the FTC indicated that the crux of the issue was the inadequately disclosed collection of sensitive data (including bank account information).</p><p>With the growing use of social media, even greater amounts of personal information are able to be collected and analyzed that go beyond the type of information that had been collected through research software, as in the case of Sears. This has provided advertisers with yet even more capability to target specific demographic groups. Social media platforms, like Facebook and Snapchat, have the ability to collect more specific data points than could ever be possible through technology like cookies. Facebook for example, is able to obtain upwards of nearly 100 specific pieces of information on a user. These data points go beyond the basics, like age and the city you live in, and includes details such as your relationship status, political affiliation, and even whether or not you have a debit card. With these type of details, marketers have a lot of information to draw upon to create highly effective ad campaigns that are personalized and timely.</p><p>As in the Target and Sears examples as well as with Facebook, where part of the data set is purchased and other data points are inferred, the interdependency is on data brokers. Data brokers are companies that collect consumers’ personal information and resell or share that data with others. In today’s world of targeted consumer advertising and marketing, going deep on vast troves of data is big business.</p><p>Among the giant data brokerage houses include such ‘household’ names as Acxiom and Experian. But the industry is somewhat a shadow market in which companies keep a low profile and real numbers of data brokers are hard to come by. Credible estimates are in the range of 2,500 to 4,000 data brokerage companies in the U.S. Some of the smaller companies include Exact Data and Datalogix. Data sources for the brokers include the obvious, like web browsing habits, as well as myriad online sources, such as blog posts and certain social media data, like screen names and interests.</p><p>Offline sources are bountiful as well, and include court and other public records including voting records and even department of motor vehicle records, in some cases. Additionally, some retailers sell sales records to brokers. Datalogix, for example, procures and sells data from store loyalty cards. They contend they have information on over $1T in consumer spending across 1400 leading brands<a href="#_ftn6">[6]</a>. Broker companies then take this online and offline data and aggregate it to form a holistic profile. Datalogix has partnered with Facebook as an example, to track whether Facebook users who see ads for certain products end up actually buying them in stores. These data can then be packaged and sold to retailers to help drive online and/or offline traffic.</p><p>Now that social media platforms and data brokers are able to formulate precise pictures of individuals that include much more than their buying habits, how might these new insights be used to increase ad effectiveness?</p><h3>Times are a Changing</h3><p>We said that a seismic shift in digital marketing was occurring, yet we did not fully describe this shift. Before describing this shift, we will first set the stage as to why a change is happening.</p><p>Over the last few years, the growth and sophistication of ad blocking software has started to greatly impact the effectiveness of ad remarketing. When you couple that with software that helps to eliminate cookie tracking, advertisers are faced with a real dilemma of how to effectively reach customers. This has caused marketers to turn to social media as a source of their advertising campaigns.</p><p>When we look at how effective social media ad campaigns are, we find that they can be effective. Evidence suggests that successful leads are being generated via social media and when users follow a particular brand they are more likely to purchase goods and services<a href="#_ftn7">[7]</a>. Though these ads have shown to be effective, technology is being developed that can block such ads, thereby limiting the efficacy of such campaigns. How might an organization work to advertise and sell around such blocks?</p><p>One means to sell around such blocks is to create advertising content that has an editorial feel — thereby blurring the lines between legitimate news/content (non-advertised material) and advertisements. We’ve all heard how such ‘fake news’ may have swung or slanted the recent election. Advertisers are using such tactics to drive click rates and ultimately convert to sales. The ‘marrying’ of such fake or blurred news with social media sites is where marketing horsepower can lie. A specific example of a tactic that blurs the lines between real and fake is <a href="https://en.wikipedia.org/wiki/Native_advertising">native advertising</a>, a type of ad that resembles the form and function of the platform on which it resides. There may be no better example of the utilization of this form of advertising than with Buzzfeed. The site derives much of its revenues from this source of advertisement. The challenge with such ads is that readers often cannot differentiate between the ads and real news. In the case of Buzzfeed, ‘legitimate’ stories intermingle seamlessly with advertised articles, as in the following example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*DcGDje7qPkJx5Fby9b92LA.jpeg" /></figure><p>While native ads aren’t going away anytime soon (BI Intelligence reports that by 2021, native display ad revenue in the U.S. will make up 74% of total US display ad revenue, up from a 56% share in 2016)<a href="#_ftn8">[8]</a> it is also no guarantee of success. Buzzfeed has been missing revenue projections of late<a href="#_ftn9">[9]</a>.</p><p>The rise and dominance of Instagram is another means and opportunity for companies to directly reach audiences to market and ultimately sell to. While requiring a few extra clicks beyond the Instagram site to shop for products seen on Instagram, some companies are making it as easy as possible to buy the items seen on their feeds. Take for example UK-based fashion label AllSaints. The company uses its Instagram account to reach customers directly and allows them an outlet to purchase what they see on its Instagram feed (as depicted in following images). While not unique — other companies do this as well — AllSaints sees and uses Instagram as a primary outreach and shopping channel for its customers with its over 407,000 Instagram followers.<a href="#_ftn10">[10]</a> As a point of reference, Zara with over 16 million followers does not link its Instagram account with the ability to make purchases from its feed. According to<a href="https://www.socialbakers.com/"> social media analytics firm Socialbakers</a>, AllSaints holds the 5th place in interactions, ahead of Zara (545,903 AllSaints interactions, defined as the sum of likes and comments).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*eV0P5uUlZh5qtc2REFdClw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*gHTYRU-uylgKaU_HuTKdAQ.jpeg" /></figure><p>Buzzfeed and the other examples are advertising tactics that we experience today, but what might the advertising landscape look like in the future. This is where cognitive computing and evolutionary algorithms come in. Evolutionary Algorithms — a computer program that is designed to evolve and improve in response to input — morph content to better suit existing user bases. These algorithms improve performance on an ongoing basis. Cognitive computing is a broad collection of services that employ deep learning to better identify trends, gain insight, and make predictions about future events. These services are often born on the cloud (internet) and, just like evolutionary algorithms, they continuously evolve and improve over time. The types of analyses that these services perform run the gamut, from data analytics to text sentiment and personality identification examples include Microsoft’s Text Analytics API service and IBM’s Watson Discovery service.</p><p>These cognitive services reveal deeper insights into the psychology of language and the tone and tenor being expressed in text, such as one’s social media and related footprint, e.g., email, Twitter, Instagram, etc. With these services, it is possible to gain deeper insight into advertising content and ultimately to targeted customer bases. With this insight, content can be matched against an individual’s Facebook (and related) profile; specifically, an advertiser could perform a semantic analysis of the advertising copy and text to determine the ad’s personality profile, the overall tone or emotion being expressed in the ad, as well as any distinct alignment with social tendencies. The advertiser could then compare this analysis with an individual’s Facebook profile to see how the ad copy could be modified to target a specific personality type that could be representative of a unique demographic.</p><p>A more sophisticated approach to ad targeting would be to tune the ad copy dynamically to fit a user’s profile rather than simply identifying whether an ad fits a user’s profile. In this approach premade paragraphs, images, and even audio files could be pieced together on the fly to best suit an individual’s specific personality attributes that is personalized, relevant, and timely (hyper-local); think immersive augmented reality marketing. This could be accomplished by using artificial intelligence services, a prominent platform being IBM Watson and specifically, IBM’s Watson Personality Insights and Watson Tone Analyzer. These services enable the construction of ad copy in an agile or iterative fashion where an author can make small adjustments and then quickly gauge the impact of different phrases and words on the overall personality traits being expressed in the text.</p><p>To get a better understanding of the type of information that these cognitive systems provide, we have provided screen captures from IBM’s Watson Personality and Watson Tone Analyzer services. We also have provided screenshots from the University of Cambridge’s “Apply Magic Sauce Tool” for use in identifying a user’s personality from Facebook. From these tools, we can assess emotional range: joy, fear, sadness, disgust, and anger being expressed in social media text content, along with the Big 5 personality traits — openness to experience, conscientiousness, extroversion, agreeableness, and neuroticism. Companies such as SocialBro use Watson to visualize personality traits to improve targeting and relevance of Twitter advertising.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*cLDTBtspIjdxO7awnrncTw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*CXfNq9c5if-JpznUYRZaew.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*M1fCYUnglZlo1y0csUeK8Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*uaVhPAveO4m1vkD2tETDFA.jpeg" /></figure><p>In the future, advertising will be made relevant down to the individual and will be dynamic; through social media and related activities, such as email, advertisers will know before an individual has acknowledged their own buying cycle what someone is looking to buy, the brands, the timing and the quality being considered. Gone will be the days of being sent irrelevant ads and emails or being bombarded by incessant ads for products that one has clicked through to on the internet preliminarily. The advertising wave of the future will know more about us than we may acknowledge within ourselves and will be customized and tailored on the fly by brand marketers. A brave, new advertising future awaits us all. The authors would like to acknowledge the valuable suggestions made by John Slocum.</p><p><a href="#_ftnref1">[1]</a> <a href="https://blog.hubspot.com/marketing/history-of-online-advertising#sm.00000j5jk7d4g1eg1uz0h67bnotxw">https://blog.hubspot.com/marketing/history-of-online-advertising#sm.00000j5jk7d4g1eg1uz0h67bnotxw</a></p><p><a href="#_ftnref2">[2]</a> <a href="http://searchengineland.com/google-adwords-turns-15-a-look-back-at-the-origins-of-a-60-billion-business-234579">http://searchengineland.com/google-adwords-turns-15-a-look-back-at-the-origins-of-a-60-billion-business-234579</a></p><p><a href="#_ftnref3">[3]</a> <a href="http://www.theverge.com/2014/4/4/5581884/how-advertising-cookies-let-observers-follow-you-across-the-web">http://www.theverge.com/2014/4/4/5581884/how-advertising-cookies-let-observers-follow-you-across-the-web</a></p><p><a href="#_ftnref4">[4]</a> <a href="http://scholarlycommons.law.northwestern.edu/cgi/viewcontent.cgi?article=1094&amp;context=njtip">http://scholarlycommons.law.northwestern.edu/cgi/viewcontent.cgi?article=1094&amp;context=njtip</a></p><p><a href="#_ftnref5">[5]</a> Complaint at 5, Sears Holdings Mgmt. Corp., File №082 3099 (Fed. Trade Comm’n June 4, 2009), <a href="http://www.ftc.gov/os/caselist/0823099/index.shtm.">http://www.ftc.gov/os/caselist/0823099/index.shtm.</a></p><p><a href="#_ftnref6">[6]</a><a href="https://www.propublica.org/article/everything-we-know-about-what-data-brokers-know-about-you">https://www.propublica.org/article/everything-we-know-about-what-data-brokers-know-about-you</a></p><p><a href="#_ftnref7">[7]</a> <a href="http://www.sociallyawareblog.com/2015/11/30/infographic-social-media-marketing/">http://www.sociallyawareblog.com/2015/11/30/infographic-social-media-marketing/</a></p><p><a href="#_ftnref8">[8]</a> <a href="http://www.businessinsider.com/the-native-ad-report-forecasts-2016-5">http://www.businessinsider.com/the-native-ad-report-forecasts-2016-5</a></p><p><a href="#_ftnref9">[9]</a> <a href="http://money.cnn.com/2016/04/12/media/buzzfeed-missed-projections/index.html">http://money.cnn.com/2016/04/12/media/buzzfeed-missed-projections/index.html</a></p><p><a href="#_ftnref10">[10]</a> <a href="http://digiday.com/uk/shoppable-international-inside-allsaints-instagram-strategy/">http://digiday.com/uk/shoppable-international-inside-allsaints-instagram-strategy/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26f3ac8b3cb7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Do You Know Who Made Your Clothes?]]></title>
            <link>https://medium.com/@stevenatkin/do-you-know-who-made-your-clothes-2bf81272deb2?source=rss-f36f0223c032------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bf81272deb2</guid>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Steve Atkin]]></dc:creator>
            <pubDate>Fri, 23 Dec 2016 19:40:27 GMT</pubDate>
            <atom:updated>2016-12-23T19:40:27.245Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ufBco-5CyrRK0Yeyv2nn9w.jpeg" /></figure><h3>Steve Atkin and Tracy De Cicco</h3><p>Retail in today’s climate is a very fickle industry. Customers are empowered to choose among a variety of brick and mortar retailers as well as online options. The rise of the Internet and web retailers, such as Amazon and eBay has enabled information to be at a customer’s fingertips to make quick decisions on purchases. They have plenty of choices. <br> <br> Part of that fickleness is customers needing and wanting to know that their clothes and other goods are responsibly produced and ethically sourced.. People — younger consumers in particular — want to know that their apparel/goods were not assembled by a child laborer in unsafe working conditions. A relatively recent Nielsen survey that looked at the extent and demographics around who is willing to pay extra for products and services from companies that are committed to positive social and environmental impact makes the case. According to the 2014 <em>Nielsen Global Corporate Social Responsibility Report</em>, half of the respondents who were responsive to sustainability actions were millennials (ages 21–34); they represent 51 percent of those who will pay extra for sustainable products. As a point of reference, this is over double that of GenX at 25% (ages 35–49).</p><p>As consumers and customers seek to gain more information from retailers about the origin of their goods and labor force used to manufacture their goods, they are faced with the challenge of being able to definitively know that products were assembled by age appropriate — and safe — workers. Currently, consumers place their faith and trust in retailers to provide them with this information and implicitly rely on retailers, suppliers, and manufacturers to behave in a responsible manner. In some cases though, this blind trust is violated, even though a retailer acted with the best of intentions. One example that illustrates how even well-intentioned retailers can be duped into believing that they are operating responsibly is the case of Walmart approving the manufacturing of Christmas goods from one of its ‘certified’ factories in China. In reality, an unauthorized factory was used instead. In this case, even though Walmart attempted to follow responsible labor and safety processes, their manufacturing partners decided to utilize an alternative manufacturing site that had not been inspected or approved by Walmart. Cases such as these are becoming more and more common and although in this case, there were no injuries to workers, other cases have resulted in loss of life.<a href="#_ftn1">[1]</a></p><p>Most of us are familiar with the incident at Rana plaza in April of 2013. In this incident, 1135 died in a building collapse. Upon investigation, authorities learned that building certifications were falsified and the workers who had tried to speak up about problems with the building had been ignored. Since the Rana incident, the accord on fire and building safety (directed at European retailers) in Bangladesh was formed, but 3 years later about 70% of those plans are behind schedule.<a href="#_ftn2">[2]</a></p><p>In some cases, even the audits themselves are falsified or erroneous. The Rosita Knitwear factory in northwestern Bangladesh, which made sweaters for companies across Europe, seemingly had passed an inspection audit with high marks even though most of the findings were falsified. A team of four monitors gave the factory hundreds of approving check marks and strong scores — across all major categories — working hours, compensation, management practices, etc. Further the auditor notes read: ‘working conditions, no complaints from workers’. In February, 2012, 10 months after that inspection, Rosita’s workers rampaged through the factory, vandalizing its machinery and accusing management of reneging on promised raises, bonuses and pay. None of this had been included in the earlier audit.<a href="#_ftn3">[3]</a></p><p>These examples still leave us with the question of what are we to do to ensure that typically well intentioned parties have an opportunity to act responsibly and ethically. How do companies easily obtain greater visibility into their suppliers practices, behaviors, and culture to better manage risk and follow mandated labor, safety, and legal requirements? Many attempts to solve these issues have relied heavily on human labor, manual inspection processes, and weak governance systems. The problem with such processes is that they are largely ad-hoc, inconsistent, and prone to fraud. What is really needed is a more systematic holistic view that relies less on manual inspection processes and shifts the focus to more transparent automated techniques and systems that are of a shared open, global nature.</p><p>When we talk of shared open systems and platforms, one could imagine some form of an alliance across manufacturers, suppliers, and retailers to address these issues. An alliance is certainly a necessary element in an overall solution, though we suggest that the problem needs to be addressed even more broadly and must include governmental inputs. Certainly one could include countries one-by-one into an alliance. Our view is that, suppliers, and retailers form an alliance with a global organization such as the World Trade Organization (WTO), International Monetary Fund (IMF), or the United Nations (UN) to solve the problem globally.</p><p>The question that you may be asking yourself is why do we need to include an organization such as the UN in a solution. To help explain our position a little more clearly we need to explore some of the key questions that must be answered for an overall solution to be effective. To gain greater insight into why we believe that a global organization is a crucial partner in an overall solution we will explore the following questions:</p><p>1. How do parties verify a worker’s identity including age?</p><p>2. How do local governmental agencies ensure compliance with labor laws?</p><p>3. What role does technology play and who owns the systems used to track and verify compliance?</p><p>4. Who provides the governance?</p><p>5. How is data collected?</p><p>Throughout the rest of this article we will address these questions and explain the role that the WTO, IMF, or UN would play in an overall solution with manufacturers, suppliers, and retailers that would enable consumers to have deeper trust in their retailers’ manufacturing practices and supply chains.</p><p>One of the key facets needed in an overall solution is being able to know, with some reasonable degree of certainty who is actually manufacturing goods. When it comes to verifying workers identities and ages, various attempts have been made by national governments to create country or regionally specific identification with only limited success, such as the REAL ID in the United States<a href="#_ftn4">[4]</a>. In the United States, some states such as South Carolina and Missouri have objected to the REAL ID Act requirement due to costs and privacy concerns<a href="#_ftn5">[5]</a><a href="#_ftn6">[6]</a>. When you add in the whole notion of creating a digital identification, especially one that includes biometric data, the challenges become even greater. When we talk about biometric identification (ID), we are referring to a form of digital verification where a person can be uniquely identified by one or more biological attributes. Typically these attributes may be fingerprints, retina patterns, speech samples, or even in DNA itself. The challenge of creating a universal ID is being explored by both the European Union and the UN<a href="#_ftn7">[7]</a><a href="#_ftn8">[8]</a>.</p><p>The UN, for example, intends to create a digital ID for every single person on the planet by 2030. This initiative was originally spearheaded by the World Bank<a href="#_ftn9">[9]</a>; the World Bank has now partnered with the UN to get legal identity into the global community and onto the world stage. This is exciting news as it provides a necessary, crucial foundational element in an overall solution. Having a universal, single biometric ID greatly reduces the technological complexity of any solution. It eliminates the need to have integration with many local, country-specific systems. Also, being able to access biometric data consistently provides an additional level of security and verifiability that wouldn’t be possible with non-biometric ID’s.</p><p>With a universal digital biometric ID in place, the possibility of automated systems that verify and track workers becomes more viable. We are already seeing the use of biometric-based systems and processes that can be used to track employee time cards to verify attendance and hours worked as part of the Internet of Things (IoT) revolution. We are also seeing the use of biometric sensors that are used to control access to facilities via smart-locks that have embedded fingerprint readers. One can certainly imagine that biometric sensors could be easily incorporated into a new breed of smart machines that not only would improve safety and operational efficiency, but could be used to track who actually operated equipment, e.g., smart sewing machines, as an example.</p><p>At this point, you can see that we are setting the stage for a fully automated solution that verifies the identity of workers through the use of biometric technology which could help add transparency and trust to the supply chain. One of the central recurring themes that is often cited in our examples is fraud. So simply being able to verify an individual worker is certainly necessary, but it alone is not sufficient. Any proposed solution would need to be able to not only capture verified worker data, but would need to be able to store it in a tamper resistant ‘safe’ that is not under a single individual or company’s control and is fully auditable and viewable by anyone who wishes to check into a company’s data/supply chain.</p><p>Over the last several years many technological advances have been made in the development of open ledger systems that eliminate single point of control and are tamper resistant. This technological advancement is often referred to as a hyperledger or a blockchain. A blockchain system is a decentralized peer-to-peer distributed<em> immutable</em> ledger. A decentralized peer-to-peer system segments work across equally privileged participants that collectively form a network<a href="#_ftn10">[10]</a>.</p><p>Blockchain is a consensus-based system that utilizes smart contracts. One of the key tenets In blockchain is consensus, which is a method of validating and authenticating transactions without requiring a central controlling authority<a href="#_ftn11">[11]</a>. In blockchain smart contracts are software programs that can automatically facilitate, verify, and enforce a set of contractual terms and obligations<a href="#_ftn12">[12]</a>. The fact that the system is consensus-based makes it more cost efficient. Each party does not need to maintain its own ledger and perform reconciliation with each other and eliminates the need for any single party to act as the centrally controlled ledger. In blockchain, smart contracts are managed, hosted, and executed by a hosted system. These smart contracts are commonly known as ‘chaincode’ and are software programs that securely enforce and verify a set of contractual obligations amongst a set of parties.</p><p>When we combine the notion of blockchain with smart contracts we have a system that offers trust, accountability, and openness. It enables all parties participating in a contract to have a complete picture of how a contract is being executed. This type of system is exactly what is needed to help gain greater insights into the labor force being used to manufacture products. And an understanding and validation of the labor force who comprise and produce goods is an essential key step to providing accountability and ultimately sustainability in a retailer’s supply chain.</p><p>You may still be wondering what do global organizations have to do with blockchain and smart contracts. The Society for Worldwide Interbank Financial Telecommunication (SWIFT) and the UN have both been exploring and testing the use of blockchain technologies for money delivery systems and micropayments. SWIFT and the UN are looking to expand the use of blockchain into other projects and use cases<a href="#_ftn13">[13]</a><a href="#_ftn14">[14]</a>. It is our position that a global organization, such as SWIFT, is in a perfect position to encourage, provide governance, and implement the use of blockchain technologies in concert with digital ID initiatives to combat the problem of child labor, or other egregious labor conditions, in partnership with both the private and public sectors.</p><p>Using smart contracts, parties (manufacturers and retailers) would be able to definitively define minimum age requirements, maximum number of working hours, and other corporate policies. From the manufacturer’s perspective the smart contracts will enable them to codify local labor rules and regulations to ensure automatic compliance and enforcement. As worker data is automatically collected from smart machines, it will be inspected by smart contracts and then subsequently stored in the blockchain. By automating the collection of data and application of smart contracts we greatly minimize the need for on-site human auditors and reduce the opportunity for fraud from all parties as the blockchain is a fully transparent, immutable, and consensus-based system.</p><p>It is our vision that a global organization, such as the UN, WTO, or even SWIFT, would provide the fabric that would enable the private and public sectors to develop processes and systems that allow for adherence to local labor regulations, provide support for corporate policies, and eliminate unethical labor practices. And a safe workplace should not only be an employee entitlement, it also is good business and ultimately will drive the bottom line. In our next article we will go deeper on the topic of worker safety, a crucial element to good business practices and meeting market needs for responsibility and sustainability.</p><p>The authors would like to acknowledge the valuable suggestions made by John Slocum.</p><p><a href="#_ftnref1">[1]</a> Stephanie Clifford, “Fast and Flawed Inspections of Factories Abroad.”<em>, </em>New York Times<em>, </em>September 1, 2013.</p><p><a href="#_ftnref2">[2]</a> Rina Chandron, “Three years after Rana Plaza disaster, has anything changed.”, Reuters, April 21, 2016.</p><p><a href="#_ftnref3">[3]</a> Stephanie Clifford, “Fast and Flawed Inspections of Factories Abroad.”, New York Times, September 1, 2013.</p><p><a href="#_ftnref4">[4]</a> Jim Caton, “Homeland Security Pushes for National ID in 2016.”, Legal Reader, December 30, 2015.</p><p><a href="#_ftnref5">[5]</a> Lynn Horsley, “Missouri driver’s license may not be accepted ID at KCI in 2018.”, The Kansas City Star, December 13, 2016.</p><p><a href="#_ftnref6">[6]</a> Emma Dumain, “Noncompliance with REAL ID could mean real trouble for S.C. travelers.”, The Post and Courier, October 30, 2016.</p><p><a href="#_ftnref7">[7]</a> Michael Snyder, “The UN Plans To Implement Universal Biometric Identification For All Of Humanity By 2030.”, Charisma News, November 4, 2015.</p><p><a href="#_ftnref8">[8]</a> European Commission, “Stronger and Smarter Information Systems for Borders and Security.”, Communication from the Commission to the European Parliament and the Council, April 6, 2016.</p><p><a href="#_ftnref9">[9]</a> Mariana Dahan and Alan Gelb, “The Role of Identification In the Post-2015 Development Agenda.”, World Bank Working Paper, 2015.</p><p><a href="#_ftnref10">[10]</a> Nathaniel Popper, “Envisioning Bitcoin’s Technology at the Heart of Global Finance.”, New York Times, August 12, 2016.</p><p><a href="#_ftnref11">[11]</a> Sigrid Seibold and George Samman, “Consensus — Immutable agreement for the Internet of value.”, KPMG, 2016.</p><p><a href="#_ftnref12">[12]</a> Kenneth Dabkowski, “Hype or Hope? Will Blockchain Based “Smart Contracts” Save Society?”, Money Summit, May 2, 2016.</p><p><a href="#_ftnref13">[13]</a> Stan Higgins, “United Nations Lab Testing Blockchain for Remittances.”, CoinDesk, October 6, 2016.</p><p><a href="#_ftnref14">[14]</a> Giulio Prisco, “SWIFT to Launch Global Payments Innovation Initiative, Develop Blockchain Roadmap.”, BitCoin Magazine, December 11, 2015.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bf81272deb2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>