{"id":18548128,"url":"https://github.com/laszlokorte/qbit","last_synced_at":"2025-07-09T14:38:56.021Z","repository":{"id":141234352,"uuid":"451674432","full_name":"laszlokorte/qbit","owner":"laszlokorte","description":"Visualization of a qbit composed of two complex numbers.","archived":false,"fork":false,"pushed_at":"2022-01-24T23:57:40.000Z","size":50,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-03T23:37:02.702Z","etag":null,"topics":["qbit","quantum-computing"],"latest_commit_sha":null,"homepage":"https://tools.laszlokorte.de","language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laszlokorte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-01-24T23:56:40.000Z","updated_at":"2022-01-30T20:05:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"9d44a854-3168-4a84-b3c4-7269f4403ec2","html_url":"https://github.com/laszlokorte/qbit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/laszlokorte/qbit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laszlokorte%2Fqbit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laszlokorte%2Fqbit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laszlokorte%2Fqbit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laszlokorte%2Fqbit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laszlokorte","download_url":"https://codeload.github.com/laszlokorte/qbit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laszlokorte%2Fqbit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264476832,"owners_count":23614579,"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":["qbit","quantum-computing"],"created_at":"2024-11-06T20:33:11.388Z","updated_at":"2025-07-09T14:38:55.896Z","avatar_url":"https://github.com/laszlokorte.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Screenshot of the app](preview.png)\n\n[Live Demo](https://static.laszlokorte.de/random-variables/)\n\n# qBit representation\n\nThis illustration shows my current unterstanding of qbits based on \u003ca href=\"https://www.youtube.com/watch?v=JWf_g_ForGk\"\u003ethis video from Prof. Dr. Edmund Weitz\u003c/a\u003e.\n\nA qbit is represented as two complex numbers. A constraint is that the squares of their magnitudes sum to 1. That is because their magnitude square represent the probability of the qbit eventually being measured as a 0 or a 1. So both probabilities together must sum to 1.\n\nPhysically the individual phases of the complex numbers can not be distinguished, only their relative offset. So typically the angle of one complex number is normalized to be 0 and the other is shifted accordingly.\n\nThe constraint to sum to 1 and the normalization of the angles reduce the degrees of freedom from 4 down to 2. So in princible a qbit can be represented by a single complex number that magnituede is less than or equal to 1.\n\nQuantum gates can be used to transform such a qbit in differnt ways. Obviously only transformations that do not violate the stated contraints are allowed. Such Quantum gates can be composed into a circuit. The input and output of the circuit are qbits. But only a limited set of qbit configurations can be created as input and only qbits with |\u0026alpha|=1 or |\u0026beta|=1 can be measured as output. An output must be measured/sampled multiple times to estimate the true magnitude value.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaszlokorte%2Fqbit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaszlokorte%2Fqbit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaszlokorte%2Fqbit/lists"}