<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Yb Arzoo</title>
    <description>The latest articles on Forem by Yb Arzoo (@ybarzoo).</description>
    <link>https://forem.com/ybarzoo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F925692%2Fa75e46dd-9191-4fd4-be4d-96dc561a558b.jpg</url>
      <title>Forem: Yb Arzoo</title>
      <link>https://forem.com/ybarzoo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/ybarzoo"/>
    <language>en</language>
    <item>
      <title>Quantum Computing 101: Beginners to Intermediate - Part 1</title>
      <dc:creator>Yb Arzoo</dc:creator>
      <pubDate>Mon, 01 Jan 2024 20:20:07 +0000</pubDate>
      <link>https://forem.com/ybarzoo/quantum-computing-101-beginners-to-intermediate-part-1-3jb2</link>
      <guid>https://forem.com/ybarzoo/quantum-computing-101-beginners-to-intermediate-part-1-3jb2</guid>
      <description>&lt;p&gt;The term quantum sounds pretty interesting, and from our childhood, we have been familiar with this term. And by hearing this term we all felt like scientists and mad geniuses. The term quantum has been used in many popular TV shows cartoons and movies. If you are a fan of MCU (Marvel Cinematic Universe) you may even find the movie called “Ant-Man and the Wasp: Quantumania”. In the movie, Quantumania is the realm where Scott Lang and his daughter Cassandra Lang got trapped or you could say she discovered the way to visit the quantum world.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ptLh_ESC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6cqvg753qcyz7l6ts01b.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ptLh_ESC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6cqvg753qcyz7l6ts01b.gif" alt="Image description" width="520" height="217"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;However, let’s get back to our main topic. The main question is what is quantum computing? Just like the movie, quantum is something or a study in physics which particularly deals with atoms or very very small particles or objects such as atoms, electrons, protons etc. behave. This has a separate term called “Quantum Physics” or we also can say “Quantum mechanics”. But obviously, we won’t find a realm of aliens or organisms living in that quantum world just like it has been shown in the movie. We could however see some bacteria, or microorganisms living there.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExN2U4ajN6bzRlZXgxamRxYWxkdHRpNW14NWw5NnVqdTBoODhtMjhuYiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/aixqzweyLkUHC/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExN2U4ajN6bzRlZXgxamRxYWxkdHRpNW14NWw5NnVqdTBoODhtMjhuYiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/aixqzweyLkUHC/giphy.gif" width="480" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Quantum Computing is however very related to quantum mechanics. In this article, we will discuss the very introduction to Quantum Computing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The contents are:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Why Learn Quantum Computing?&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Why does it matter?&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;What is the difference between a Quantum Computer and a Classical Computer?&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Problems that classical computers face while solving certain problems.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;How different is the Quantum world?&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Classical world vs Quantum World.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;What do we focus on doing in Quantum Computing?&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Where are we today with Quantum Computing?&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Tech Giants, Universities and governments that are interested in Quantum Research and Development.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Conclusion.&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This article will be a guide to Quantum Computing from beginner to intermediate and will kick-start your knowledge of Quantum Computing. In the future, I will try to discuss the following topics:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Quantum Mechanics.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Single and Multi Quibit Circuits.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Coding in Cirq.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Quantum Teleportation.&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After I post the 2nd part of this article I will leave the link to that article here as well. At the end of the whole journey, you will have all the article links from the beginning till the end.&lt;/p&gt;

&lt;h2&gt;
  
  
  But the question is why learn Quantum Computing?
&lt;/h2&gt;

&lt;p&gt;In this 21st century, we have seen some emerging global problems. Global problems such as climate change, and global pandemic. Other than these global problems we are facing a lot of cyber threats as well. These sorts of problems were never seen before, or some problems were seen before but the technologies that we have built to overcome these problems are getting backdated or inefficient. As these problems are getting advanced over time, we must come up with advanced solutions to overcome these problems.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/777Aby0ZetYE8/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/777Aby0ZetYE8/giphy.gif" width="500" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why does learning Quantum Computing matter?&lt;/strong&gt;&lt;br&gt;
Some of the most pressing issues of the 21st century may be solved with quantum technologies. Experts believe Quantum Computing can solve: food security, and cyber warfare and may even contribute to solving problems related to climate change as well.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/Ztzt8zhmmpVPUiSNMX/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/Ztzt8zhmmpVPUiSNMX/giphy.gif" width="480" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is the difference between Quantum Computers and Classical Computers?
&lt;/h2&gt;

&lt;p&gt;Here classical computers refer to the normal computers that we use in our day-to-day life. To understand the difference between Quantum computers and classical computers, let’s think of an example: You are a delivery man, and you have to deliver products in 50 cities in Russia. Russia as we know the biggest country in the world. So you try to figure out the shortest possible path for the journey to visit all the 50 cities, and you try to use your classical computer maybe your laptop and set up an algorithm (we will learn about this in the future), and try to figure out the shortest possible path for your journey. Believe it or not but this will take 20,000,000 years for your laptop to find the shortest path.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/xUn3CsELcxapWtFUzu/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/xUn3CsELcxapWtFUzu/giphy.gif" width="480" height="272"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Problems that classical computers face while solving certain problems.&lt;/strong&gt;&lt;br&gt;
From the above example, we can see that classical computers do take a huge amount of time to solve certain problems. The time taken to solve these problems can however be a bit minimized if we use some high-end computers with powerful processors, maybe by using the latest Intel Core i9–13900K you may be able to decrease a few years to find the shortest path. But “a few years” Nah, that’s still super inefficient. Ultimately we see that classical computers struggle to find the solution to a certain problem if:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;There are large datasets involved.&lt;/li&gt;
&lt;li&gt;There are a large number of possible combinations.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/3oxRmvU3GAJay6F60g/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/3oxRmvU3GAJay6F60g/giphy.gif" width="512" height="512"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How different is the Quantum world?&lt;/strong&gt;&lt;br&gt;
Inside the Quantum world, there are a few theories or terms we must understand and we must learn to understand the Quantum world properly.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Superposition — Objects can be in multiple states at once.&lt;/li&gt;
&lt;li&gt;Tunneling — Objects can pass through physical barriers.&lt;/li&gt;
&lt;li&gt;Teleportation — Information can be teleported.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/PtfK7Ra6kTana3v32D/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/PtfK7Ra6kTana3v32D/giphy.gif" width="576" height="324"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Classical world vs Quantum World
&lt;/h2&gt;

&lt;p&gt;Now let’s compare our world with the Quantum world. There are a few interesting phenomena that would happen in each scenario.&lt;/p&gt;

&lt;p&gt;Let’s think of a basketball court. And you are throwing the ball against a wall.&lt;/p&gt;

&lt;p&gt;Classical World — you throw a classical basketball against a wall and it bounces right back to you.&lt;br&gt;
Quantum world — as you have a small atom-sized basketball against a wall, it will pass (tunnels) right through the wall or sometimes it may even bounce back as well.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4VpYUUzI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vz5wfhv3ahb8hvs4luh3.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4VpYUUzI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vz5wfhv3ahb8hvs4luh3.gif" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now you leave your basketball on the court to get some water as you are tired.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Classical World&lt;/em&gt; — You come back with the water and see the basketball is in the same spot when you left it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Quantum world&lt;/em&gt; — You come back and probably it’s not in the same spot and now it may be at a different place.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As you notice inside the quantum world, the location and the position of the objects are not well defined as a characteristic in a quantum world compared to the classical world. Now you want to shoot your basketball inside the hoop.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;Classical world:&lt;/em&gt; You shoot the basketball towards the hoop and you can see that it moves towards the hoop, will you score or not it depends on how you through it.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Quantum world:&lt;/em&gt; You shoot the basketball but it doesn’t move it floats in the same place, but every time you blink the ball moves a little bit closer to the hoop. It’s a quam zeno effect — in simple terms, it’s an effect where things don’t change when you are watching it or measuring it but when you look away things suddenly change.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rFj3IXR4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uavig1a68o5b1sj91wbd.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rFj3IXR4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uavig1a68o5b1sj91wbd.gif" alt="Image description" width="600" height="338"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;At this point of this whole article, you seem to think about what sort of magical world the Quantum world is!&lt;br&gt;
&lt;a href="https://i.giphy.com/media/d8C9QwHsFQgR39MSTq/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/d8C9QwHsFQgR39MSTq/giphy.gif" width="480" height="327"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To understand the Quantum world better we must understand some of the quantum mechanics as well. The 4 key properties of quantum mechanics are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;Superposition&lt;/em&gt; — It is the ability to be in multiple states at the same time. State could be related to location, or any other property, or this is what it is at a certain point of time at that specific time. For example, a basketball is spinning either clockwise or counterclockwise and we can say it in the classical world but in the Quantum world, it could be spinning in both directions within the probability percentage. Like, the ball is spinning at 50% of clockwise and the other 50% of counterclockwise.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Interference&lt;/em&gt; — States can interact with one another, adding up or cancelling out. For example, in basketball shooting it may get cancelling out or shredded in some places when entering the hoop or may add up and be the same as new.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Entanglement&lt;/em&gt; — Is the ability of multiple objects to be influenced by each other in seemingly impossible ways. For example, spinning a quantum basketball causes another quantum basketball to spin in the opposite direction. This happens no matter how far away they are.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Measurement&lt;/em&gt; — What state a quantum object is in often gives random results and changes the state of the object. For example, observing your quantum basketball in the air will make it follow one specific path even if it is in superposition.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--pHCfK3qX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lyjgetvo1z497x66de4v.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pHCfK3qX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lyjgetvo1z497x66de4v.jpeg" alt="Image description" width="800" height="534"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What do we focus on doing in Quantum Computing?
&lt;/h2&gt;

&lt;p&gt;The field of Quantum Computing is about trying to make computing faster and more powerful by taking advantage of these aspects of quantum mechanics and using them to our advantage. There are some challenging problems for classical computers, and they struggle to find solutions for them, such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Delivery problems finding the shortest route.&lt;/li&gt;
&lt;li&gt;Nurse scheduling problem with too many constraints:&lt;/li&gt;
&lt;li&gt;Allow no more than 2 consecutive shifts&lt;/li&gt;
&lt;li&gt;Considering nurses who are on vacation&lt;/li&gt;
&lt;li&gt;Assigning nurses who work well together&lt;/li&gt;
&lt;li&gt;&lt;p&gt;How can we search massive databases (not structured or sorted) where the data is not structured or stored to find an optimal value? (Or how do we find the needle in a haystack?)&lt;br&gt;
All these problems have common things:&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Problems that involve too much searching or testing for regular computers to do quickly (massive data sets).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Problems that require secure encryption.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Problems that involve simulating quantum mechanical systems.&lt;br&gt;
We are only talking about computer science, but if we observe, various problems exist in all kinds of industries:&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Finance&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Cybersecurity&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Biology&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Chemistry&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Aerospace&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Robotics and machine learning&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5jG1SDrh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7cjpdxisemf5ypod3ruw.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5jG1SDrh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7cjpdxisemf5ypod3ruw.jpg" alt="Image description" width="800" height="1067"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Where are we today with Quantum Computing?
&lt;/h2&gt;

&lt;p&gt;In the first quantum revolution, scientists leveraged the properties of quantum mechanics, and in the second quantum revolution is focused on controlling individual quantum systems and in turn developing powerful new technologies. It’s like if we could control the level of molecules or control the individual molecules and harness that and solve problems and use that power for computing, the world would change.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/4Sni5t2BsY5F9SnqvB/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/4Sni5t2BsY5F9SnqvB/giphy.gif" width="480" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech Giants, Universities and governments that are interested in Quantum Research and Development.
&lt;/h2&gt;

&lt;p&gt;The world is moving at a fast pace and tech giants are gathering more and more quantum leaders so that the world could receive this new form of technology, as it has the potential to change the world. &lt;br&gt;
&lt;em&gt;A few tech giants who are working with Quantum Computing:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Google quantum AI&lt;/li&gt;
&lt;li&gt;AWS&lt;/li&gt;
&lt;li&gt;Nvidia&lt;/li&gt;
&lt;li&gt;Microsoft&lt;/li&gt;
&lt;li&gt;Intel&lt;/li&gt;
&lt;li&gt;IBM Quantum&lt;/li&gt;
&lt;li&gt;Honeywell&lt;/li&gt;
&lt;li&gt;Toshiba&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;There are a lot of startups as well who are developing their specialized approaches for many aspects of Quantum Computing:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Xanadu&lt;/li&gt;
&lt;li&gt;OQC&lt;/li&gt;
&lt;li&gt;Zapata&lt;/li&gt;
&lt;li&gt;Rigetti&lt;/li&gt;
&lt;li&gt;IonQ&lt;/li&gt;
&lt;li&gt;Strange works&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;There are non-quantum companies that are integrating quantum into their business operations as well:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ExxonMobil&lt;/li&gt;
&lt;li&gt;Goldman Sachs&lt;/li&gt;
&lt;li&gt;Boeing&lt;/li&gt;
&lt;li&gt;Accenture&lt;/li&gt;
&lt;li&gt;JP Morgan&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;There are Universities as well who are interested in Quantum Computing:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Princeton University.&lt;/li&gt;
&lt;li&gt;Google Quantum Computer Research Center.&lt;/li&gt;
&lt;li&gt;University of Tokyo.&lt;/li&gt;
&lt;li&gt;University of Science and Technology of China.&lt;/li&gt;
&lt;li&gt;University of Washington.&lt;/li&gt;
&lt;li&gt;University of Oxford.&lt;/li&gt;
&lt;li&gt;Duke University.&lt;/li&gt;
&lt;li&gt;National Institute of Standards and Technology.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Believe it or not, &lt;em&gt;Governments are also interested in Quantum Computing and they are investing millions of dollars:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;France — 1.9B Euros (2.08B USD)&lt;/li&gt;
&lt;li&gt;India — 8000 Crore Rupee (1.2B USD)&lt;/li&gt;
&lt;li&gt;Australia — 111M ASD (75M USD)&lt;/li&gt;
&lt;li&gt;USA — 2.6B USD&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/uyWTOgNGGWfks/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/uyWTOgNGGWfks/giphy.gif" width="245" height="285"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion.
&lt;/h2&gt;

&lt;p&gt;So, where does this quantum journey take us?&lt;/p&gt;

&lt;p&gt;We’ve dipped our toes into the mind-bending world of Quantum Computing, explored its fascinating principles, and glimpsed its potential to revolutionize countless fields. But this is just the tip of the iceberg. From tackling global challenges like climate change and cybersecurity to unlocking medical breakthroughs and pushing the boundaries of artificial intelligence, Quantum Computing promises to reshape our world in ways we can only begin to imagine. But it’s still a theory, I just cannot come in and say Quantum Computing will give us everything that will reshape our world, but as our world is already falling apart, why not give it a chance?&lt;/p&gt;

&lt;p&gt;Stay tuned for the next chapter, where we’ll unlock the hidden language of quantum and code our way into the future!&lt;/p&gt;




&lt;h2&gt;
  
  
  Notes for the readers.
&lt;/h2&gt;

&lt;p&gt;Hey guys, I hope all of you found this super informative, if you did don't forget to follow me in Dev Blogs and do share this article with the people who are interested. Showing some love in this article will boost my confidence, and I would release the future articles related to Quantum Computing as soon as possible. Peace out!&lt;/p&gt;

&lt;p&gt;FYI if you like my contents — You can all find me on &lt;a href="https://twitter.com/ArzooYb"&gt;Twitter (X)&lt;/a&gt; and &lt;a href="https://www.linkedin.com/in/yb-arzoo/"&gt;LinkedIn&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>quantum</category>
      <category>quantumcomputing</category>
      <category>introduction</category>
      <category>quantummechanics</category>
    </item>
    <item>
      <title>How to find the first even and odd occurring numbers from a list in Python?</title>
      <dc:creator>Yb Arzoo</dc:creator>
      <pubDate>Tue, 26 Dec 2023 17:47:25 +0000</pubDate>
      <link>https://forem.com/ybarzoo/how-to-find-the-first-even-and-odd-occurring-numbers-from-a-list-in-python-4han</link>
      <guid>https://forem.com/ybarzoo/how-to-find-the-first-even-and-odd-occurring-numbers-from-a-list-in-python-4han</guid>
      <description>&lt;p&gt;We usually find problems where they tell us to separate the odd and even numbers from the list. But this question is unique as you must find the &lt;em&gt;first-ever even number&lt;/em&gt; you encounter and the &lt;em&gt;first-ever odd number&lt;/em&gt; you encounter inside the list.&lt;/p&gt;

&lt;p&gt;Here are the example inputs and outputs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example Input 1:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;33,44,55,77,88&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example Output 1:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;[33, 44, 55, 77, 88]&lt;br&gt;
First even: 44 and first odd: 33&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example Input 2:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;12,44,86,32,66,92,100&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example Output 2:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;[12, 44, 86, 32, 66, 92, 100]&lt;br&gt;
First even: 12 and first odd: Not found&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--iuLOAOtp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o3nja15kn683cgv1j6bh.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--iuLOAOtp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o3nja15kn683cgv1j6bh.gif" alt="Example of the output" width="366" height="73"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  &lt;strong&gt;Let’s set up some steps for this problem:&lt;/strong&gt;
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Implementing user input as a list.&lt;/li&gt;
&lt;li&gt;Setting up variables.&lt;/li&gt;
&lt;li&gt;Searching the odd and even numbers.&lt;/li&gt;
&lt;/ol&gt;



&lt;p&gt;To solve this problem, we must take input from the user and convert it into a list. There are various ways of making a list by taking input from the user, but we usually use some techniques that could be more neat. The messiest way to make a list would be — setting up the number of elements for a list. The to type in each element while pressing enter after those elements. This is a messy way of taking input from the user and making it a list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--U0QkRytR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ecaq3rr4tr7e2xe1wbre.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--U0QkRytR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ecaq3rr4tr7e2xe1wbre.gif" alt="The messiest way to make a list from user inputs" width="533" height="141"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/pwnpqOmGHfBdQPWU3e/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/pwnpqOmGHfBdQPWU3e/giphy.gif" width="480" height="480"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  &lt;strong&gt;Step 1:&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Let’s code an effective way of handling input as a list.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;my_list = input().split(",")
for n in range(0, len(my_list)):
  my_list[n] = int(my_list[n])

print(my_list) 
#I'm printing the list to 
#show you how it works compared to the above messy example.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PJlQV6Ph--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3iyl22ll31jahmj4uh0y.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PJlQV6Ph--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3iyl22ll31jahmj4uh0y.gif" alt="Good List" width="330" height="55"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, will you look at that!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/oNKLBehxbnoqY/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/oNKLBehxbnoqY/giphy.gif" width="494" height="265"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Step 2:&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;We would then set 2 variables named &lt;code&gt;comment&lt;/code&gt; and &lt;code&gt;comment_2&lt;/code&gt; and set them as “Not Found”. These comment variables will also act like a medium of output if there are no even or odd numbers in the list.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;comment = "Not found"
comment_2 = "Not found"

#I have taken two comment variables, one for even and one for odd.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;Step 3:&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Now, we will search the even numbers and the odd numbers from the list with a simple modulus “%” operator in Python.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/5zoxhCaYbdVHoJkmpf/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/5zoxhCaYbdVHoJkmpf/giphy.gif" width="414" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We will put the list through a for loop, and if I see that my element is odd or even, I will swap the value of &lt;code&gt;comment&lt;/code&gt; or &lt;code&gt;comment_2&lt;/code&gt; with the item I have just found from the list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/Xf8D9Qf8OCKnMvNnru/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/Xf8D9Qf8OCKnMvNnru/giphy.gif" width="480" height="470"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Check for even numbers

for items in my_list:
  if items % 2 == 0:
    comment = items   #Notice that I have assigned the variable to items
    break

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We will repeat the same process for odd numbers, and finally, we are done 🎉🎉💥💥&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/7yORCExjS87Jk10xSU/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/7yORCExjS87Jk10xSU/giphy.gif" width="480" height="343"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Final Code:&lt;/strong&gt;
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;my_list = input().split(",")
for n in range(0, len(my_list)):
  my_list[n] = int(my_list[n])

#This code above solves the problem. 
#We have taken the list as an input in a neat way.

comment = "Not found"
comment_2 = "Not found"


#I have taken two comment variables, 
#one for even and one for odd. 

# Next, we check for even numbers

for items in my_list:
  if items % 2 == 0:
    comment = items   #Notice that I have assigned the variable to items
    break


#checking for odd numbers and repeating the whole process

for items_2 in my_list:
  if items_2 % 2 != 0:
    comment_2 = items_2
    break

print(my_list)
print("First even: " + str(comment), "and first odd: " + str(comment_2))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;You can find the full code from my GitHub from &lt;a href="https://github.com/YbArzoo/Finding-the-first-ever-occurring-even-and-odd-numbers-from-a-list-in-Python"&gt;here&lt;/a&gt;.&lt;/strong&gt;
&lt;/h2&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;Note for the readers.&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;I’m genuinely grateful for all the support you all kind souls have shown in my &lt;a href="https://dev.to/ybarzoo/how-to-make-a-fibonacci-series-with-a-function-in-python-26e2"&gt;previous article&lt;/a&gt;. With all the support you guys have shown me, I couldn’t stop writing another Python Programming article for you guys 💜!&lt;/p&gt;

&lt;p&gt;Could you all react to show your support and keep my enthusiasm going? This will ignite my passion, and I will continue giving my best! 🔥&lt;/p&gt;

&lt;p&gt;&lt;em&gt;FYI — You can all find me on &lt;a href="https://twitter.com/ArzooYb"&gt;Twitter (X)&lt;/a&gt; and &lt;a href="https://www.linkedin.com/in/yb-arzoo/"&gt;LinkedIn&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>howto</category>
      <category>python</category>
      <category>list</category>
      <category>datastructures</category>
    </item>
    <item>
      <title>How to make a Fibonacci series with a Function In Python</title>
      <dc:creator>Yb Arzoo</dc:creator>
      <pubDate>Mon, 11 Dec 2023 18:50:49 +0000</pubDate>
      <link>https://forem.com/ybarzoo/how-to-make-a-fibonacci-series-with-a-function-in-python-26e2</link>
      <guid>https://forem.com/ybarzoo/how-to-make-a-fibonacci-series-with-a-function-in-python-26e2</guid>
      <description>&lt;p&gt;The Fibonacci series is complicated using a programming language, and writing a Python function that takes the limit as an argument of the Fibonacci series and prints until that limit given as an argument — is very challenging. After reading this article, you will know how to write a Python function that will generate a Fibonacci series till the limit you set as a function argument.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/lcOTXQJuAGptC/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/lcOTXQJuAGptC/giphy.gif" width="245" height="245"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But what’s a Fibonacci series? A Fibonacci series is a series where the first term starts from 0 and the 2nd term is 1. For the third term, it’s simply the addition of the 1st and 2nd terms, so 0+1 = 1. For the 4th term, it’s the addition of the 2nd and 3rd terms, so 1+1 = 2. So this goes on and on, making an infinite series of numbers. The first 10 terms of a Fibonacci series are 0,1,1,2,3,5,8,13,21,34.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/ne3xrYlWtQFtC/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/ne3xrYlWtQFtC/giphy.gif" width="540" height="231"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So, let’s start with the code. At first, let’s just simply put on the logic without making a function.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;first_number = 0
second_number = 1


#here as we know the 1st and 2nd term is always 0 and 1 thats why 
#we will set variables with 0 and 1


print(first_number, end= " ")
print(second_number, end= " ")


#we will use end parameters for both the print statements 
#so that our outputs come in a single line.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next, we set up another variable for our while loop. We named it counter and set its value to 0 because our loop will work from 0. Remember that our objective is to make a function which will produce a Fibonacci series, and we have to set our parameter as the range or term of the series. As we didn’t set any function yet, we will carry out code logic with the alphabet “X”.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/fRhSHzQ4NXOdrHIZJd/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/fRhSHzQ4NXOdrHIZJd/giphy.gif" width="220" height="148"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;counter = 0 


#as you can see i have set the counter to 0 as our loop will start from 0


while counter &amp;lt; X:


#here the X will be just acting as a dummy variable we will 
#change it after we have learnt the logic.
#counter is &amp;lt; X because the loop will run till it meets X, 
#so X is the argument we will use for a function.

  new_number = first_number + second_number


#new number would be the number which adds the first number 
#and the second number.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now we will verify if the &lt;code&gt;new_number&lt;/code&gt; is less than the argument.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if new_number &amp;lt; X:
    print(new_number, end=" ")




    first_number = second_number
    second_number = new_number

    #note here that we are swapping and switching the variables.


  else:
    print()


  count = new_number

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;All we have to do is put all of these into a function.&lt;/p&gt;

&lt;p&gt;Congratulations you have successfully made the Fibonacci series with a function in Python.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/DhstvI3zZ598Nb1rFf/giphy-downsized-large.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/DhstvI3zZ598Nb1rFf/giphy-downsized-large.gif" width="480" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The final code:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def fibonacci(X):


#notice that i used the X as an argument in the function.




  first_number = 0
  second_number = 1
  print(first_number, end = " ")
  print(second_number, end = " ")


  counter = 0


  while counter &amp;lt; X :
    new_number = first_number + second_number


    if new_number &amp;lt; X:
      print(new_number, end = " ")
      first_number = second_number
      second_number = new_number

    else:
      print()


    counter = new_number


fibonacci(10)


#i have used 10 as an argument, the output will be 0 1 1 2 3 5 8
#it's till 8 because after 8 the series would be greater than 10.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  Note for the reader
&lt;/h3&gt;

&lt;p&gt;This is my first time writing in Dev.to blogs. But you know you can press the reaction button maybe for 10 times 💜? The higher you go, the more it motivates me to write more stuff for you!&lt;/p&gt;

</description>
      <category>fibonacci</category>
      <category>datastructures</category>
      <category>python</category>
      <category>howto</category>
    </item>
  </channel>
</rss>
