<?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 Anshul Jain on Medium]]></title>
        <description><![CDATA[Stories by Anshul Jain on Medium]]></description>
        <link>https://medium.com/@anshuljain06?source=rss-206eb8208c47------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KlFdoOYiQyQ0GA6Xznxh8Q.jpeg</url>
            <title>Stories by Anshul Jain on Medium</title>
            <link>https://medium.com/@anshuljain06?source=rss-206eb8208c47------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 02:04:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anshuljain06/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[Host A Free React Website On GitHub Pages : 15 Mins Guide]]></title>
            <link>https://anshuljain06.medium.com/host-a-free-react-website-on-github-pages-15-mins-guide-3c5f890e1dbc?source=rss-206eb8208c47------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c5f890e1dbc</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[website]]></category>
            <category><![CDATA[hosting]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[github-pages]]></category>
            <dc:creator><![CDATA[Anshul Jain]]></dc:creator>
            <pubDate>Fri, 18 Dec 2020 21:05:45 GMT</pubDate>
            <atom:updated>2020-12-30T00:56:59.984Z</atom:updated>
            <content:encoded><![CDATA[<h3>Host A Free React Website On GitHub Pages : 15 Mins Guide</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_P0Ee4q3Td7OLdxJboqi5Q.png" /></figure><p>You are here to create a multipage <a href="https://reactjs.org/">React</a> website and host it free of cost on <a href="https://pages.github.com/">GitHub Pages</a>. We got 15 mins, let&#39;s get going.</p><h4>Notes -</h4><ul><li>We would be creating a React website using <a href="https://create-react-app.dev/">create-react-app</a>.</li><li>We are not going to make any CSS or HTML changes to the website.</li><li>For multipage support, we would be integrating <a href="https://reactrouter.com/">react-router</a>.</li><li>I am utilizing <a href="https://domains.google.com/">Google Domains</a> for setting up a custom domain. You can do the same with any of your preferred domain registrar/manager.</li></ul><h4>Prerequisites -</h4><ul><li>A <a href="https://github.com/">GitHub</a> account. (Obviously!)</li><li><a href="https://github.com/git-guides/install-git">Git</a> installed on your computer.</li><li><a href="https://nodejs.org/en/download">NodeJS</a> and NPM installed on your computer.</li><li>A Custom Domain.</li></ul><h4>Step 1 : Creating A GitHub Repository (~1 Min)</h4><p>You might have done this numerous times in the past. If you already have a repository to start with, skip this and jump to the next step. If not, creating one is easy; just follow along.</p><p>Login on GitHub and open <a href="https://github.com/new">Create a New Repository (github.com)</a>.</p><p>Enter the repository name, description (optional) and click on the “Create repository” button at the bottom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*EJfAsU0EoFtXwaS5-0ohLQ.png" /></figure><h4>Step 2 : Creating And Setting Up React Website (~10 Mins)</h4><p>We are going to divide this into two tasks. To start with, we will generate the website code using “<em>create-react-app”</em>, install the utility packages, and configure build settings. And then turn the website into a multipage website.</p><p><strong>Generating Website Code And Setting Up The Build :</strong></p><p>We will use “<em>npx</em>” to generate website code. Open the terminal, and execute the following command inside the directory where you want your website code to live.</p><pre>&gt; npx create-react-app mediumrepo</pre><p>Next is installing the utility packages to make our life easier. Execute the following command from inside the directory containing the website code.</p><pre>&gt; npm install gh-pages<br>&gt; npm install react-scripts</pre><p>Let us configure the build settings now. Open “<strong><em>package.json</em></strong>” in the editor of your choice and add the following two lines inside the “<em>script</em>” section.</p><pre>&quot;scripts&quot;: {<br>  &quot;start&quot;: &quot;react-scripts start&quot;,</pre><pre>  &quot;<strong>predeploy&quot;: &quot;npm run build&quot;,<br>  &quot;deploy&quot;: &quot;gh-pages -d build&quot;,</strong></pre><pre>  &quot;build&quot;: &quot;react-scripts build&quot;,<br>  &quot;test&quot;: &quot;react-scripts test&quot;,<br>  &quot;eject&quot;: &quot;react-scripts eject&quot;<br>},</pre><p>And add a new property with the name “<em>homepage</em>” and the value set to,<br><em>https://{username}.github.io/{repository-name}.</em></p><pre>&quot;name&quot;: &quot;mediumrepo&quot;,<br>&quot;version&quot;: &quot;0.1.0&quot;,</pre><pre><strong>&quot;homepage&quot;: &quot;https://mediumUser.github.io/mediumRepo&quot;,</strong></pre><pre>&quot;private&quot;: true,</pre><p>Finally, configure the Git. From inside the directory containing the website code, execute the following command.</p><pre>&gt; git remote add origin https://github.com/mediumUser/mediumRepo.git</pre><p>If you just want a single-page website, you can skip the task below and jump directly to the next step.</p><p>Anyhow it is a good idea to test the changes so far, you can jump to the next step and continue from here once you have verified the changes.</p><p><strong>Turning Website Into A Multipage Website :</strong></p><p>Let us start by installing the “<em>react-router-dom</em>” package. From inside the directory containing the website code, execute the following command.</p><pre>&gt; npm install react-router-dom</pre><p>Next, open “<strong><em>index.js</em></strong>” in the editor of your choice. Import “<em>HashRouter</em>” and replace “<em>React.StrictMode</em>” with “<em>HashRouter</em>”.</p><pre>import ReactDOM from &#39;react-dom&#39;;</pre><pre><strong>import { HashRouter } from &#39;react-router-dom&#39;;</strong></pre><pre>import &#39;./index.css&#39;;<br>import App from &#39;./App&#39;;<br>import reportWebVitals from &#39;./reportWebVitals&#39;;<br>ReactDOM.render(</pre><pre><strong>&lt;HashRouter&gt;</strong><br>    &lt;App /&gt;<br><strong>  &lt;/HashRouter&gt;,</strong></pre><pre>  document.getElementById(&#39;root&#39;)<br>);<br>reportWebVitals();</pre><p>Finally, to add routes, open “<strong><em>App.js</em></strong>” and create routes as shown in the image below.</p><pre><strong>import { Switch, Route, Link } from &quot;react-router-dom&quot;;</strong></pre><pre>import &quot;./App.css&quot;;</pre><pre>function App() {<br>  return (<br>    &lt;div className=&quot;App&quot;&gt;</pre><pre>      <strong>&lt;Switch&gt;<br>         &lt;Route path=&quot;/page2&quot;&gt;<br>           &lt;div className=&quot;Page2&quot;&gt;<br>             &lt;h1&gt;This is Page 2&lt;/h1&gt;<br>             &lt;Link to=&quot;/page1&quot;&gt;Goto Page 1&lt;/Link&gt;<br>             &lt;br/&gt;<br>             &lt;Link to=&quot;/&quot;&gt;Goto Default Page&lt;/Link&gt;<br>           &lt;/div&gt;<br>         &lt;/Route&gt;<br>         &lt;Route path=&quot;/page1&quot;&gt;<br>           &lt;div className=&quot;Page1&quot;&gt;<br>             &lt;h1&gt;This is Page 1&lt;/h1&gt;<br>             &lt;Link to=&quot;/page2&quot;&gt;Goto Page 2&lt;/Link&gt;<br>             &lt;br/&gt;<br>             &lt;Link to=&quot;/&quot;&gt;Goto Default Page&lt;/Link&gt;<br>           &lt;/div&gt;<br>         &lt;/Route&gt;<br>         &lt;Route path=&quot;/&quot;&gt;<br>           &lt;div className=&quot;DefaultPage&quot;&gt;<br>             &lt;h1&gt;This is Default Page&lt;/h1&gt;<br>             &lt;Link to=&quot;/page1&quot;&gt;Goto Page 1&lt;/Link&gt;<br>             &lt;br/&gt;<br>             &lt;Link to=&quot;/page2&quot;&gt;Goto Page 2&lt;/Link&gt;<br>           &lt;/div&gt;<br>        &lt;/Route&gt;<br>      &lt;/Switch&gt;</strong></pre><pre>    &lt;/div&gt;<br> );<br>}</pre><pre>export default App;</pre><p>That’s all the code we need to write. The website is going to have 3 pages, page1, page2, and a default page. Each page is going to have a link to two other pages.</p><p>You can test everything locally by running the following command inside the directory containing the website code.</p><pre>&gt; npm start</pre><h4>Step 3 : Deploying And Verifying The Website (~2 Mins)</h4><p>Remember the deploy and pre-deploy options we added to “<em>package.json</em>”? this is where we are going to use them. Just one command and your website code is built and uploaded to GitHub.</p><p>But before that, do make sure you setup your GitHub repository in your working directory. The instructions for this could be found on the portal, in your repository right after you create it.</p><p>Lets deploy, in the terminal while you are inside the directory containing the website code, execute the following command.</p><pre>&gt; npm run deploy</pre><p>This will build the website and put the built code inside the “<em>build</em>” directory. And will also upload the built code to “<em>gh-pages</em>” branch in your repository.</p><p>You can verify the website by going to,<br><em>https://{username}.github.io/{repository-name}</em></p><p>Note that it might take a couple of minutes for the website to be accessible.</p><p>You have to repeat this step every time you make some changes and want those changes to be reflected on your website.</p><h4>Step 4 : Setting Up Custom Domain (~2 Mins)</h4><p>Setting up a custom domain is a two-part process. First, you have to configure custom domain settings in the GitHub repository. And second, you have to create domain records in your domain registrar/manager.</p><p><strong>Configuring Custom Domain Settings In GitHub Repository :</strong></p><p>Login on GitHub and open settings,<br><em>https://github.com/{username}/{repository-name}/settings</em></p><p>Scroll down and find the “<em>GitHub Pages</em>” section. Under the “<em>Custom Domain</em>” textbox enter your domain with the “<em>www</em>” subdomain and click on “<em>Save</em>”.</p><p>This will create a “<em>CNAME” </em>file in the “<em>gh-pages</em>” branch of your repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*LeEMln7-RRavSAXhidT3TA.jpeg" /></figure><p>Once you save the settings scroll down to the “<em>GitHub Pages</em>” section again. This time the checkbox in front of “<em>Enforce HTTPS</em>” would be unchecked, click on that checkbox to enable HTTPS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*haJQX5IfP0RyTctBE9mSug.jpeg" /></figure><p>GitHub Pages is all set to serve your website. Now we need to configure the domain records so that the requests are forwarded to GitHub Pages.</p><p><strong>Configure Domain Records In Domain Registrar/Manager :</strong></p><p>Before we proceed, reminding you again that I am using Google Domains. You should be able to find similar settings with other Domain Registrar/Manager.</p><p>Open DNS settings and create a custom record. Enter “<em>www</em>” inside the name textbox, change the records type to “<em>CNAME</em>”, leave TTL default, type “<em>{username}.github.io.” </em>inside the data text field, and click “<em>Add”</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*B5amzeOtzzcFUBBBrX6Ozg.png" /></figure><p>This will redirect requests with the “<em>www</em>”<em> </em>subdomain to GitHub Pages.</p><p>You can use any subdomain instead of “<em>www</em>”<em> </em>and it will work just fine.</p><p>If you also want to redirect the naked domain (domain name without ”<em>www</em>” or any other subdomain) to GitHub pages, open DNS settings and create a subdomain forwarding record with the following settings.</p><p>Type “<em>@</em>”<em> </em>inside the subdomain textbox, enter your previously configured subdomain URL inside the destination URL textbox, mark it as “Permanent redirect” along with “<em>Forward path</em>” and “<em>Enable SSL</em>”, and click “<em>Add”</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*vvbCJ0pAZnXE4cybHoepzA.png" /></figure><p>This is it, you are all set. The custom domain changes might take some time to reflect. Till then you can continue modifying your website to turn it into a delightful experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c5f890e1dbc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quantum Computing : Hardware at High Level]]></title>
            <link>https://anshuljain06.medium.com/quantum-computing-hardware-at-high-level-cae130a8cd9c?source=rss-206eb8208c47------2</link>
            <guid isPermaLink="false">https://medium.com/p/cae130a8cd9c</guid>
            <category><![CDATA[quantum-computing]]></category>
            <category><![CDATA[quantum]]></category>
            <category><![CDATA[quantum-computer]]></category>
            <category><![CDATA[self-taught]]></category>
            <category><![CDATA[computers]]></category>
            <dc:creator><![CDATA[Anshul Jain]]></dc:creator>
            <pubDate>Thu, 10 Sep 2020 17:18:58 GMT</pubDate>
            <atom:updated>2020-09-21T05:24:46.007Z</atom:updated>
            <content:encoded><![CDATA[<h3>Quantum Computing : Hardware at High Level</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WXUmIZd_9uUIquXPLvP9Zw.jpeg" /><figcaption>Image : Graham Carlow for IBM</figcaption></figure><p>Quantum Computers have been around for more than a decade now, and we, as a general audience is getting to know more and more about them. An ever-increasing number of images are coming up, and we wonder what they consist of and why they are challenging to develop and maintain.</p><p>They are still a mystery for most of the part because the front runner companies have decided to keep their recipes secret. But what we know is that they follow a typical architecture that consists of 4 major components.</p><ul><li>Classical Computer and Control Processor</li><li>Cooling and Vacuum Casing</li><li>Control and Measurement Plane</li><li>Qubit Assembly</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AHFhaziV-ah84HPY6Tp8NQ.png" /></figure><p>In this article, we will look at these four major components and their responsibilities in the assembly at a very high level. We will start at the most outer layer and analyze different components as we zoom in.</p><p>Let’s begin!</p><h3>Classical Computer and Control Processor</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NnQJfWLV3yinMt-ytgocmw.png" /><figcaption>Highlighted — Classical Computer</figcaption></figure><p>Although quantum computers are foretold to dominate classical computers, they are still in their infancy and do not provide everything we need to create a fully quantum system. Quantum computers can help with the computation, but they do not provide networking, storage, display, etc. For all this, we still depend on classical computers.</p><p>The classical computer is placed outside the shielding of the quantum assembly. It is usually running a conventional operating system with software and libraries required to operate a quantum system. The user interacts with the quantum system using the standard computer peripherals of this classical computer. It referred to as the host processor.</p><p>Many quantum computers allow cloud access and need to connect to existing networking infrastructure; hence, classical computers furnish the system’s networking capabilities. The classical computer also contains the whole system’s storage, including the storage required during the execution of a quantum program.</p><p>The other component of a quantum system is a control processor. A control processor could be part of the classical computer or could be a separate unit. It does two essential tasks: error correction and converting quantum programs into quantum interpretations that control, and measurement planes can execute.</p><p>Because of the way quantum computers operate and are implemented, the occurrence of errors is unavoidable. Also, as quantum computers are scaled up and more qubits are added, it is likely to increase the error rate. Therefore control processor performs error correction on the results from the quantum assembly.</p><p>Next, the quantum algorithms are written in programming languages such as Python, Q#, etc. they are yet to be converted to quantum operations. Hence, the control processor is responsible for taking the compiled code and transforming it into low-level commands to be processed by the control and measurement plane. They also act as accelerators by simplifying the execution of some of the quantum applications.</p><h3>Cooling and Vacuum Casing</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jCHb2QaMDLKYP7mbhzG3xg.png" /><figcaption>Highlighted — Shielding / Vacuum Casing</figcaption></figure><p>When we talk about qubits, we talk about particles at the atomic level, and these particles are fragile and sensitive to their surroundings. Even a small uncontrolled change in the environment, called interference or noise, can randomly change the qubit’s state, resulting in corrupt outcomes.</p><p>Fundamentally, these interferences or noises are forms of extra energy. This unwanted energy might come from the heat exchange with the surrounding atoms. The solution is to make the quantum system very cold. Here, the aim is to get the temperature as close as possible to the <a href="https://www.thoughtco.com/what-is-absolute-zero-604287">absolute zero</a> (0 K / -273.15 C / -459.67 F). At this temperature, the atoms have exhausted all their heat, and hence there is no more heat to exchange.</p><p>Note that the cooling unit aims to achieve absolute zero; in reality, that temperature is a few decimal degrees above the absolute zero. Therefore the atoms are still able to exchange some heat. Also, the use of shielding does not nullify the effect of vibrations completely. These issues result in the occurrence of errors.</p><p>Next, apart from thermal energy, other forms of energy, such as electromagnetic energy and vibrational energy, create interference and stops qubit from stabilizing. To overcome this, the quantum systems are put in a vacuum casing, which minimizes interference from the external world.</p><p>Different quantum systems have varying implementations for cooling and vacuum casing, but none can completely nullify the effect of interferences from surrounding. This is a big hurdle in implementing large quantum computers and hence a significant research area.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4NcwhA1sAoKE8TSWLAFPtw.jpeg" /><figcaption>Image : Quantum Solutions Vacuum Chamber | Honeywell</figcaption></figure><h3>Control and Measurement Plane</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mN99TMRYX6tDBOjdJkmtbg.png" /><figcaption>Highlighted — Control and Measurement Plane with Qubits</figcaption></figure><p>The control and measurement plane is the component that contains all the circuitry required to operate on qubits and carry out quantum operations. This is the only component in the quantum assembly that directly interacts with the qubits.</p><p>The control and measurement plane receives the quantum operations in digital signals from the control processor. It converts them into analog operations to be performed on the qubits. Depending on the type of qubit control plane can operate on qubits by various methods such as microwaves, lasers, voltage, etc. It also reads the analog output from the individual qubits and converts them into binary data, which gets transmitted back to the control processor.</p><p>Because of the tiny size of qubits, the control and measurement equipment have to be precise and operate in a minimal area. Imperfections in the separation of qubits lead to the introduction of small errors. Also, the irregularities in shielding affect analog signals. Therefore a few quantum computers have some error correction mechanisms embedded in the control and measurement plane.</p><p>Generally, quantum computers have more than one qubit; therefore, those qubits have to be connected to exchange information. The control and measurement plane provide this communication channel. Along with this, many operations are performed on the values obtained from qubits; hence it also contains the gates, switches, memory, and other circuitry to execute quantum algorithms.</p><p>You can think of the control and measurement plane as a grid, where each intersection is connected to a qubit and has the equipment to operate and read qubits. Between each intersection, there is circuitry that performs operations on values obtained from the qubits.</p><h3>Qubit Assembly</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hwH85RLF3uDfnqfcUbdAPA.png" /><figcaption>Highlighted — Superconducting Coaxial Lines</figcaption></figure><p>This is the elephant in the room. This is where all the qubits live along with the necessary assembly to hold them in place and perform analog operations.</p><p>Since the discovery of <a href="https://quantumcomputinguk.org/tutorials/shors-algorithm-with-code">Shor’s algorithm</a> rigorous efforts were put into the physical implementation of qubits. In recent years two technologies have shown promising developments, trapped-ion qubits, and superconducting qubits. There are ongoing efforts on other approaches, photonic qubits, neutral atom qubits, semiconductor qubits, topological qubits are some of those candidates.</p><p><strong>A trapped-ion qubit</strong> consists of an ion and an electromagnetic trap to hold that ion. The qubit could be operated by the use of either laser or microwave. The equipment for these lives on the control and measurement plane and photon detectors measure the state of the qubit by detecting the photons the ions scatter. These equipment have to be precise not to affect the quantum state of ions other than the one intended.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MK3pDljjH9_0kUxBkpb-_A.jpeg" /><figcaption>Image : Trapped Ion Qubit | NIST</figcaption></figure><p><strong>A superconducting qubit </strong>is made up of an inductor, a capacitor, and a non-linear inductive element called Josephson junction. The inductor and capacitor create a superconducting resonator, and with the help of Josephson junction to differentiate distinct energy levels, it forms an atom, this atom is the qubit. The atoms are called artificial atoms because, unlike the natural atoms, which are all identical, artificial atoms are the product of circuit elements; therefore, manufacturing variations induce different properties in them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NI68wtSDDcBLgm0d00rvmw.png" /><figcaption>Image : 16-Qubit Superconducting Quantum Chip | MIT and Lincoln Laboratory</figcaption></figure><p>Emphasizing again that this is a basic architecture, the specifics are going to vary per each implementation. The architecture itself is evolving as a result of increasing efforts into the research. Quantum computers are yet to prove all the promises it made. Big industry players see quantum computers as a massive market in the future, but right now, we are far from there and even more to reach the general public. Till then, we rely on our classical computers to make this world a better place.</p><h3><strong>References and Further Readings</strong></h3><ul><li><a href="https://www.nap.edu/read/25196/chapter/7">The National Academies Press : Essential Hardware Components of a Quantum Computer</a></li><li><a href="https://www.illinoisscience.org/2019/04/diy-guide-building-a-quantum-computer/">Illinois Science Council : A DIY Guide to Building a Quantum Computer</a></li><li><a href="https://www.dwavesys.com/tutorials/background-reading-series/introduction-d-wave-quantum-hardware">D-Wave : Introduction to the D-Wave Quantum Hardware</a></li><li><a href="https://hackaday.com/2018/01/22/quantum-computing-hardware-teardown/">Hackaday : Quantum Computing Hardware Teardown</a></li><li><a href="https://docs.microsoft.com/en-us/quantum/overview/quantum-computers-and-simulators">Microsoft : Quantum computers and Quantum Simulators Overview</a></li><li><a href="https://www.ibm.com/quantum-computing/learn/what-is-quantum-computing">IBM : What is Quantum Computing?</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cae130a8cd9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>