{"id":166881,"date":"2023-07-04T23:26:08","date_gmt":"2023-07-05T04:26:08","guid":{"rendered":"https:\/\/lifeboat.com\/blog\/2023\/07\/quantum-computing-on-a-commodore-64-in-200-lines-of-basic"},"modified":"2023-07-04T23:26:08","modified_gmt":"2023-07-05T04:26:08","slug":"quantum-computing-on-a-commodore-64-in-200-lines-of-basic","status":"publish","type":"post","link":"https:\/\/lifeboat.com\/blog\/2023\/07\/quantum-computing-on-a-commodore-64-in-200-lines-of-basic","title":{"rendered":"Quantum Computing On A Commodore 64 In 200 Lines Of BASIC"},"content":{"rendered":"<p><a class=\"aligncenter blog-photo\" href=\"https:\/\/lifeboat.com\/blog.images\/quantum-computing-on-a-commodore-64-in-200-lines-of-basic.jpg\"><\/a><\/p>\n<p>The term \u2018quantum computer\u2019 gets usually tossed around in the context of hyper-advanced, state-of-the-art computing devices, but much as how a 19th century mechanical computer, a discrete computer created from individual transistors, and a human being are all computers, the important quantifier is how fast and accurate the system is at the task, whether classical or quantum computing. This is demonstrated succinctly by [Davide \u2018dakk\u2019 Gessa] with <a href=\"https:\/\/medium.com\/@dakk\/quantum-computing-on-a-commodore-64-in-200-lines-of-basic-eda7658b32a4\" target=\"_blank\">200 lines of BASIC code on a Commodore 64<\/a> (<a href=\"https:\/\/github.com\/dakk\/qc64\" target=\"_blank\">GitHub<\/a>), implementing a range of quantum gates.<\/p>\n<p>Much like a transistor in classical computing, the qubit forms the core of quantum computing, and we have known for a long time that a qubit can be simulated, even on something as mundane as an 8-bit MPU. Ergo [Davide]\u2019s simulations of various <a href=\"https:\/\/en.wikipedia.org\/wiki\/Quantum_logic_gate\" target=\"_blank\">quantum gates<\/a> on a C64, ranging from Pauli-X, Pauli-Y, Pauli-Z, Hadamard, CNOT and SWAP, all using a two-qubit system running on a system that first saw the light of day in the early 1980s.<\/p>\n<p>Naturally, the practical use of simulating a two-qubit system on a general-purpose MPU running at a blistering ~1 MHz is quite limited, but as a teaching tool it\u2019s incredibly accessible and a fun way to introduce people to the world of quantum computing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The term \u2018quantum computer\u2019 gets usually tossed around in the context of hyper-advanced, state-of-the-art computing devices, but much as how a 19th century mechanical computer, a discrete computer created from individual transistors, and a human being are all computers, the important quantifier is how fast and accurate the system is at the task, whether classical [\u2026]<\/p>\n","protected":false},"author":599,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1523,32,1617],"tags":[],"class_list":["post-166881","post","type-post","status-publish","format-standard","hentry","category-computing","category-education","category-quantum-physics"],"_links":{"self":[{"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/posts\/166881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/users\/599"}],"replies":[{"embeddable":true,"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/comments?post=166881"}],"version-history":[{"count":0,"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/posts\/166881\/revisions"}],"wp:attachment":[{"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/media?parent=166881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/categories?post=166881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/tags?post=166881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}