{"id":21112834,"url":"https://github.com/teddy55codes/superdense-coding-with-teleportation","last_synced_at":"2026-01-01T22:47:22.156Z","repository":{"id":250504929,"uuid":"834648364","full_name":"Teddy55Codes/superdense-coding-with-teleportation","owner":"Teddy55Codes","description":"Superdense coding with extra steps","archived":false,"fork":false,"pushed_at":"2024-07-27T23:41:03.000Z","size":3171,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-21T04:26:58.861Z","etag":null,"topics":["qsharp","quantum-computing","superdense-coding","teleportation"],"latest_commit_sha":null,"homepage":"","language":"Q#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Teddy55Codes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-27T23:25:02.000Z","updated_at":"2025-01-12T00:31:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"d10720e1-2fca-4b3c-a4b4-b843d49b12a5","html_url":"https://github.com/Teddy55Codes/superdense-coding-with-teleportation","commit_stats":null,"previous_names":["teddy55codes/superdense-coding-with-teleportation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Teddy55Codes%2Fsuperdense-coding-with-teleportation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Teddy55Codes%2Fsuperdense-coding-with-teleportation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Teddy55Codes%2Fsuperdense-coding-with-teleportation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Teddy55Codes%2Fsuperdense-coding-with-teleportation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Teddy55Codes","download_url":"https://codeload.github.com/Teddy55Codes/superdense-coding-with-teleportation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243558484,"owners_count":20310574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["qsharp","quantum-computing","superdense-coding","teleportation"],"created_at":"2024-11-20T01:34:07.906Z","updated_at":"2026-01-01T22:47:17.105Z","avatar_url":"https://github.com/Teddy55Codes.png","language":"Q#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Superdense Coding With Teleportation\nThis Q# script encodes text into qubits, teleports them, and decodes the message. Saying it like this makes this project look way too good. \nThis project exists only for me to be able to say that i teleported \":3\".\n\nTo quickly show what the script does, let's look at a circuit representation.\n\n![circuit of superdense coding with teleportation](readme-resources/SuperdenseCodingWithTeleportation.gif)\\\n[view online in quirk](https://algassert.com/quirk#circuit={\"cols\":[[1,1,\"H\"],[1,1,\"•\",1,1,1,\"X\"],[\"…\",\"…\",\"…\",\"…\",\"…\",\"…\",\"…\"],[\"Counting2\"],[\"Measure\",\"Measure\"],[\"~msg\"],[\"Chance\",\"Chance\"],[\"~enc\"],[1,\"•\",\"X\"],[\"•\",1,\"Z\"],[1,1,1,\"~send\"],[1,1,1,\"H\"],[1,1,1,\"•\",1,\"X\"],[1,1,\"•\",\"X\"],[1,1,\"H\"],[1,1,\"Measure\",\"Measure\"],[1,1,1,\"•\",1,\"X\"],[1,1,\"•\",1,1,\"Z\"],[1,1,1,1,1,\"~dec\"],[1,1,1,1,1,\"•\",\"X\"],[1,1,1,1,1,\"H\"],[1,1,1,1,1,\"Measure\",\"Measure\"],[1,1,1,1,1,\"~msg\"],[1,1,1,1,1,\"Chance\",\"Chance\"]],\"gates\":[{\"id\":\"~msg\",\"name\":\"message\",\"matrix\":\"{{1,0,0,0},{0,1,0,0},{0,0,1,0},{0,0,0,1}}\"},{\"id\":\"~enc\",\"name\":\"encode\",\"matrix\":\"{{1,0,0,0},{0,1,0,0},{0,0,1,0},{0,0,0,1}}\"},{\"id\":\"~send\",\"name\":\"send\",\"matrix\":\"{{1,0,0,0},{0,1,0,0},{0,0,1,0},{0,0,0,1}}\"},{\"id\":\"~dec\",\"name\":\"decode\",\"matrix\":\"{{1,0,0,0},{0,1,0,0},{0,0,1,0},{0,0,0,1}}\"}]})\n\nIf you know a bit about quantum mechanics, this probably looks familiar.\nBecause this is superdense coding with teleportation instead of a switch gate.\n\nFor reference here is superdense coding:\n\n![circuit of superdense coding](readme-resources/SuperdenseCoding.gif)\n\nand here is teleportation:\n\n![circuit of teleportation](readme-resources/Teleportation.gif)\n\n## But what do i mean by teleported \":3\"\nSo in essence what i am doning is superdense coding with extra steps. Superdense coding is transporting 2 regular bits with 1 qubit. \n\nAt the entry point we have the following lines. \n```qsharp\n// 0011 1010 0011 0011 is binary ASCII for :3\nlet messages = [(false, false), (true, true), (true, false), (true, false),  // :\n                (false, false), (true, true), (false, false), (true, true)]; // 3\n```\nHere i create an array of tupels, each containing 2 booleans. This represents the bits to be teleported. Then the \"Superdense Coding with Teleportation\" operation is performed on each tuple in the array. The result is then aggregated and returned as integers. (because it looks nicer as an output)\n\n## Results of a real run\nI ran this script on Quantinnum's [H1 quantum computer](https://www.quantinuum.com/hardware/h1) via Azure Quantum for 10 shots. This consumed 7.11 Azure Quantum credits which would be 89$.\n\nHere is the histogram output.\n```json\n{\n    \"Histogram\":\n    [\n        \"[0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1]\",0.8,\n        \"[0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1]\",0.1,\n        \"[0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1]\",0.1\n    ]\n}\n```\nWe can see that out of 10 shots 8 where without error. So i teleported \":3\" 8 times tehe \u003e:3. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteddy55codes%2Fsuperdense-coding-with-teleportation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteddy55codes%2Fsuperdense-coding-with-teleportation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteddy55codes%2Fsuperdense-coding-with-teleportation/lists"}