{"id":17061418,"url":"https://github.com/filipw/qsharp-examples","last_synced_at":"2025-09-09T11:06:17.921Z","repository":{"id":146325108,"uuid":"544961723","full_name":"filipw/qsharp-examples","owner":"filipw","description":"A collection of various interesting Q# examples.","archived":false,"fork":false,"pushed_at":"2025-08-06T07:29:57.000Z","size":41,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-06T09:26:08.002Z","etag":null,"topics":["qsharp","quantum-computing"],"latest_commit_sha":null,"homepage":"","language":"Q#","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/filipw.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-10-03T14:41:00.000Z","updated_at":"2025-08-06T07:29:56.000Z","dependencies_parsed_at":"2024-12-31T13:29:30.431Z","dependency_job_id":"65697c81-6e2a-47f9-8d5b-b3a32e70feb7","html_url":"https://github.com/filipw/qsharp-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/filipw/qsharp-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipw%2Fqsharp-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipw%2Fqsharp-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipw%2Fqsharp-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipw%2Fqsharp-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/filipw","download_url":"https://codeload.github.com/filipw/qsharp-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipw%2Fqsharp-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274287487,"owners_count":25257446,"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","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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"],"created_at":"2024-10-14T10:47:04.039Z","updated_at":"2025-09-09T11:06:17.888Z","avatar_url":"https://github.com/filipw.png","language":"Q#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Q# Examples\n\nA collection of various interesting Q# examples.\n\n## Algorithms\n\n| Sample Name | Description | Blog Post | Type |\n|-------------|-------------|-----------|------|\n| 💻 [Christmas Tree](./christmas-tree) | 📝 Decorating a Christmas tree with a quantum computer. Uses both Q# and Qiskit (Aer) simulators. | [Link](https://www.strathweb.com/2024/12/decorating-a-quantum-christmas-tree-with-qsharp-and-qiskit/) | Executable |\n| 💻 [Quokka](./quokka) | 📝 A Jupyter notebook showing how to run Q# code on a [Quokka](https://www.quokkacomputing.com/) quantum simulator. | [Link](https://strathweb.com/2025/03/running-qsharp-code-on-quokka/) | Jupyter Notebook |\n| 💻 [Certified deletion](./certified-deletion) | 📝 Q# sample illustrating [Quantum encryption with certified deletion](https://link.springer.com/chapter/10.1007/978-3-030-64381-2_4) from Anne Broadbent and Rabib Islam. | [Link](https://www.strathweb.com/2023/12/exploring-quantum-encryption-and-certified-deletion-with-qsharp/) | Executable |\n| 💻 [Elitzur-Vaidman tester](./elitzur-vaidman) | 📝 [Elitzur-Vaidman](https://arxiv.org/abs/hep-th/9305002) bomb tester thought experiment, as a playful Q# Santa-themed sample | [Link](https://www.strathweb.com/2022/12/q-holiday-calendar-2022-peeking-into-santas-gifts-with-q/) | Executable\n| 💻 [Hidden shift](./hidden-shift) | 📝 [Hidden shift](https://arxiv.org/abs/quant-ph/0211140) problem | N/A | Executable\n| 💻 [Simon's algorithm](./simons-algorithm/) | 📝 A toy demonstration of [Simon's algorithm](https://epubs.siam.org/doi/10.1137/S0097539796298637) | N/A | Executable\n\n## Errors\n\n| Sample Name | Description | Blog Post | Type |\n|-------------|-------------|-----------|------|\n| 💻 [Cat state with noise](./cat-state-with-noise/) | 📝 A simple 8-qubit GHZ state, with a basic noise model, illustrating its impact on measurement. Run with 1000 shots. | N/A | Executable\n| 💻 [Bit flip error correction](./error-correction/bitflip) | 📝 Bit flip error correction samples (auxiliary qubit-based syndrome extraction, automatic correction with auxiliary qubits and direct parity measurement) | N/A | Executable\n| 💻 [Phase flip error correction](./error-correction/phaseflip) | 📝 Phase flip error correction samples (auxiliary qubit-based syndrome extraction, automatic correction with auxiliary qubits and direct parity measurement) | N/A | Executable\n\n## Language features\n\n| Sample Name | Description | Blog Post | Type |\n|-------------|-------------|-----------|------|\n| 💻 [Array shuffle](./language/shuffle) | 📝 Shuffling an array using Q# (classical logic). | [Link](https://www.strathweb.com/2023/12/shuffling-an-array-in-qsharp/) | Executable |\n| 💻 [New array update syntax](./language/arrays/) | 📝 The improved array update syntax introduced in Q# 1.17 | [Link](https://www.strathweb.com/2025/06/a-cat-jumped-on-a-keyboard-and-fixed-qsharp-array-syntax/) | Executable |\n| 💻 [Q# Testing (Bell state)](./language/tests/sample.qs) | 📝 Bell state tests demonstrating different Q# testing approaches | N/A | Tests |\n\n## Further samples\n\nYou can find more Q# samples in my [Introduction to Quantum Computing with Q# and QDK](https://github.com/filipw/intro-to-qc-with-qsharp-book?tab=readme-ov-file#list-of-examples) book repository.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilipw%2Fqsharp-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffilipw%2Fqsharp-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilipw%2Fqsharp-examples/lists"}