{"id":5337,"date":"2025-01-27T12:22:47","date_gmt":"2025-01-27T11:22:47","guid":{"rendered":"https:\/\/www.islandwalking.com\/wordpress\/?p=5337"},"modified":"2025-01-27T12:22:47","modified_gmt":"2025-01-27T11:22:47","slug":"superdense-coding-emulation-on-a-ti-84-plus-ce-t","status":"publish","type":"post","link":"https:\/\/www.islandwalking.com\/wordpress\/superdense-coding-emulation-on-a-ti-84-plus-ce-t\/","title":{"rendered":"Superdense Coding Emulation on a TI-84 Plus CE-T"},"content":{"rendered":"<p>This is sort of the opposite of the Quantum Teleportation we have covered earlier. Here you use quantum bits to transfer classical bits:<\/p>\n<p><a href=\"https:\/\/www.islandwalking.com\/wordpress\/wp-content\/uploads\/2025\/01\/superdense-coding-figure.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-5338\" src=\"https:\/\/www.islandwalking.com\/wordpress\/wp-content\/uploads\/2025\/01\/superdense-coding-figure-1024x397.png\" alt=\"\" width=\"1024\" height=\"397\" srcset=\"https:\/\/www.islandwalking.com\/wordpress\/wp-content\/uploads\/2025\/01\/superdense-coding-figure-1024x397.png 1024w, https:\/\/www.islandwalking.com\/wordpress\/wp-content\/uploads\/2025\/01\/superdense-coding-figure-300x116.png 300w, https:\/\/www.islandwalking.com\/wordpress\/wp-content\/uploads\/2025\/01\/superdense-coding-figure-768x298.png 768w, https:\/\/www.islandwalking.com\/wordpress\/wp-content\/uploads\/2025\/01\/superdense-coding-figure.png 1489w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>We have all the building blocks we need from the previous episode, so let me just show you the additional code:<\/p>\n<blockquote>\n<pre>#Alice bits\r\na1=1\r\na2=1\r\nprint(\"Alice bits:\",a1,a2)\r\n\r\n#Initialize inputs\r\nq=[[1],[0],[0],[0]]\r\n\r\n#Build circuit\r\nU=kron(H,I)\r\nU=mult(CNOT,U)\r\n\r\n#Encode bits\r\nif a2==1:\r\n  U=mult(kron(X,I),U)\r\nif a1==1:\r\n  U=mult(kron(Z,I),U)\r\n\r\n#Run circuit\r\nq=mult(U,q)\r\n\r\n#Bob applies gates\r\nq=mult(CNOT,q)\r\nq=mult(kron(H,I),q)\r\n\r\n#Bob measurements\r\nb1=qbit(0,M(q))\r\nq=qbitset(0,b1,q)\r\nb2=qbit(1,M(q))\r\nq=qbitset(1,b2,q)\r\n\r\nprint(\"Bob measurements:\",b1,b2)\r\n<\/pre>\n<\/blockquote>\n<p>So as an example we try to give Bob the bits 1 and 1. Bob does his measurements and this is the result:<\/p>\n<p><a href=\"https:\/\/www.islandwalking.com\/wordpress\/wp-content\/uploads\/2025\/01\/Capture-1-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5339\" src=\"https:\/\/www.islandwalking.com\/wordpress\/wp-content\/uploads\/2025\/01\/Capture-1-2.png\" alt=\"\" width=\"324\" height=\"244\" srcset=\"https:\/\/www.islandwalking.com\/wordpress\/wp-content\/uploads\/2025\/01\/Capture-1-2.png 324w, https:\/\/www.islandwalking.com\/wordpress\/wp-content\/uploads\/2025\/01\/Capture-1-2-300x226.png 300w\" sizes=\"auto, (max-width: 324px) 100vw, 324px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is sort of the opposite of the Quantum Teleportation we have covered earlier. Here you use quantum bits to transfer classical bits: We have all the building blocks we need from the previous episode, so let me just show you the additional code: #Alice bits a1=1 a2=1 print(&#8220;Alice bits:&#8221;,a1,a2) #Initialize inputs q=[[1],[0],[0],[0]] #Build circuit &hellip; <a class=\"read-excerpt\" href=\"https:\/\/www.islandwalking.com\/wordpress\/superdense-coding-emulation-on-a-ti-84-plus-ce-t\/\">Continue reading <span class=\"meta-nav\">&raquo;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5337","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.islandwalking.com\/wordpress\/wp-json\/wp\/v2\/posts\/5337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.islandwalking.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.islandwalking.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.islandwalking.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.islandwalking.com\/wordpress\/wp-json\/wp\/v2\/comments?post=5337"}],"version-history":[{"count":1,"href":"https:\/\/www.islandwalking.com\/wordpress\/wp-json\/wp\/v2\/posts\/5337\/revisions"}],"predecessor-version":[{"id":5340,"href":"https:\/\/www.islandwalking.com\/wordpress\/wp-json\/wp\/v2\/posts\/5337\/revisions\/5340"}],"wp:attachment":[{"href":"https:\/\/www.islandwalking.com\/wordpress\/wp-json\/wp\/v2\/media?parent=5337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.islandwalking.com\/wordpress\/wp-json\/wp\/v2\/categories?post=5337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.islandwalking.com\/wordpress\/wp-json\/wp\/v2\/tags?post=5337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}