{"id":378,"date":"2022-04-18T12:45:04","date_gmt":"2022-04-18T11:45:04","guid":{"rendered":"https:\/\/pulpscience.de\/?p=378"},"modified":"2022-09-10T18:29:53","modified_gmt":"2022-09-10T17:29:53","slug":"quantum-computers-arent-fast-computers","status":"publish","type":"post","link":"https:\/\/pulpscience.de\/de\/2022\/04\/18\/quantum-computers-arent-fast-computers\/","title":{"rendered":"Quantum Computers aren&#8217;t fast Computers"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/pulpscience.de\/wp-content\/uploads\/2022\/04\/Quantum_PC-1024x768.png\" alt=\"\" class=\"wp-image-616\" srcset=\"https:\/\/pulpscience.de\/wp-content\/uploads\/2022\/04\/Quantum_PC-1024x768.png 1024w, https:\/\/pulpscience.de\/wp-content\/uploads\/2022\/04\/Quantum_PC-300x225.png 300w, https:\/\/pulpscience.de\/wp-content\/uploads\/2022\/04\/Quantum_PC-768x576.png 768w, https:\/\/pulpscience.de\/wp-content\/uploads\/2022\/04\/Quantum_PC-1536x1151.png 1536w, https:\/\/pulpscience.de\/wp-content\/uploads\/2022\/04\/Quantum_PC-2048x1535.png 2048w, https:\/\/pulpscience.de\/wp-content\/uploads\/2022\/04\/Quantum_PC-16x12.png 16w, https:\/\/pulpscience.de\/wp-content\/uploads\/2022\/04\/Quantum_PC-1200x900.png 1200w, https:\/\/pulpscience.de\/wp-content\/uploads\/2022\/04\/Quantum_PC-1980x1484.png 1980w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>To understand why quantum computers aren\u2019t just computers which run faster through some kind of \u201equantum magic\u201c, we need to talk about their history and dip our toe in complexity classes. Don\u2019t worry, it\u2019s not <em>that<\/em> boring.<\/p>\n\n\n\n<p>Quantum mechanics is weird. In fact, it is not even really mechanics. It is a mathematical concept developed in the 1920s to explain a series of strange phenomena, which itself introduced even more strange phenomena. Quantum mechanics is so weird that one of its most prominent founders, Albert Einstein, became the most prominent critic of his own theory. The amazing thing about quantum mechanics is that &#8211; even whilst being wildly unintuitive &#8211; it has lead us to stunning theories predicting our physical world with great accuracy. That\u2019s why it is still around.<\/p>\n\n\n\n<p>As it turns out, the weirdness of quantum mechanics can be used to our advantage. In 1982, Richard Feynman proposed that, in order to simulate quantum mechanics on a computer, the computer itself may as well make use of them. Fast forward a few years and some ridiculously smart people (David Deutsch, Lou Grover, Peter Shor and many more) figured out the first algorithms that could be run on a quantum computer and solve problems more efficiently than the best known classical counterpart.<\/p>\n\n\n\n<p>You might have noticed the usage of the word <em>efficiently<\/em> in the last paragraph. This hints at a key concept in computer science. In a nutshell, a computation is efficient if the time it takes to complete it doesn\u2019t blow up exponentially if we scale the problem. A great example for a problem which can\u2019t be solved efficiently by a traditional computer (or you) is the question of how to factorise an integer with prime numbers. It\u2019s pretty intuitive for smaller numbers, say 5 x 7 = 35. How about 2 x 2 x 3 x 5 x 7 = 420? Math tells us that there is some decomposition for any integer, but we don\u2019t know how it looks like. This problem is (believed to be) so difficult to solve, that we built a considerable chunk of internet security on it. The number of computing steps it takes a classical computer to solve scales very fast with the number of digits. In more technical terms, we don\u2019t know about any algorithm that can find prime factors in <em>polynomial time<\/em>, and it is thus believed to be in the class <strong>NP<\/strong>. You can think of <strong>NP<\/strong> problems as taking unreasonable long to solve with a classical computer, while <strong>P<\/strong> problems are solvable on a human timescale.<\/p>\n\n\n\n<p>The reason why quantum computers are so exciting is that their magic ingredients allow them to execute Shor\u2019s algorithm, which can find a prime factor decomposition in significantly less steps than a classical computer! In other words, while solving the prime factor problem is inefficient (i.e. <strong>NP<\/strong>) on a classical computer, it is <em>efficient<\/em> on a quantum computer (i.e. <strong>BQP<\/strong>, but I will not go down the rabbit hole of quantum complexity classes today). How does the quantum computer do that?<\/p>\n\n\n\n<p>Quantum computers can run special algorithms since they make use of certain quantum mechanical phenomena. For example, while a classical computer stores and manipulates information encoded as zeros and ones, a quantum computer doesn&#8217;t have to decide right away. During a computation, that is before we ask the quantum computer for a result, it can store information in <em>superposition<\/em> of the two states. This means that the information is neither a zero nor a one, but both at the same time. In a nutshell, this allows the quantum computer to perform a computation on many different values simultaneously. This is called quantum parallelism and is at the core of many quantum algorithms and cannot be simulated <em>efficiently<\/em> (ah, there it is again) on a classical computer! There are even more things in the quantum information box of tricks, and together they enable all sorts of problem solving goodness. <\/p>\n\n\n\n<p>Why did I choose this title then? Well, there are two things I want to point out. First of all, current quantum computers suck. It takes a giant room, huge machinery and lots of personnel to operate them, much like in the early days of classical computers. But even if they get more powerful in the future, they will not replace the device you are reading this on. They will probably one day have a similar purpose as your GPU; serving as a co-processor for certain applications.<\/p>\n\n\n\n<p>Secondly, and more importantly: it is still just a computing device. Computers don\u2019t solve problems, algorithms do.<br>Yes, quantum computers are exciting, especially for natural scientists and their insane computing needs. But in order for them to be actually useful, we need to come up with algorithms that are even worth running on quantum computers. In reality, there is only a handful of them right now.<\/p>","protected":false},"excerpt":{"rendered":"<p>To understand why quantum computers aren\u2019t just computers which run faster through some kind of \u201equantum magic\u201c, we need to talk about their history and dip our toe in complexity classes. Don\u2019t worry, it\u2019s not that boring. Quantum mechanics is weird. In fact, it is not even really mechanics. It is a mathematical concept developed [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":616,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[65,66,64],"class_list":["post-378","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-physics","tag-computation","tag-computer-science","tag-quantum-computing"],"_links":{"self":[{"href":"https:\/\/pulpscience.de\/de\/wp-json\/wp\/v2\/posts\/378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pulpscience.de\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pulpscience.de\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pulpscience.de\/de\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/pulpscience.de\/de\/wp-json\/wp\/v2\/comments?post=378"}],"version-history":[{"count":5,"href":"https:\/\/pulpscience.de\/de\/wp-json\/wp\/v2\/posts\/378\/revisions"}],"predecessor-version":[{"id":618,"href":"https:\/\/pulpscience.de\/de\/wp-json\/wp\/v2\/posts\/378\/revisions\/618"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pulpscience.de\/de\/wp-json\/wp\/v2\/media\/616"}],"wp:attachment":[{"href":"https:\/\/pulpscience.de\/de\/wp-json\/wp\/v2\/media?parent=378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pulpscience.de\/de\/wp-json\/wp\/v2\/categories?post=378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pulpscience.de\/de\/wp-json\/wp\/v2\/tags?post=378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}