{"id":26063006,"url":"https://github.com/timscodebase/learning-qsharp","last_synced_at":"2026-03-16T04:01:33.051Z","repository":{"id":279526153,"uuid":"939100509","full_name":"timscodebase/learning-qsharp","owner":"timscodebase","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-26T02:00:22.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T02:57:33.539Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/timscodebase.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":"2025-02-26T01:47:54.000Z","updated_at":"2025-02-26T02:00:25.000Z","dependencies_parsed_at":"2025-02-26T03:28:05.151Z","dependency_job_id":null,"html_url":"https://github.com/timscodebase/learning-qsharp","commit_stats":null,"previous_names":["timscodebase/learning-qsharp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timscodebase%2Flearning-qsharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timscodebase%2Flearning-qsharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timscodebase%2Flearning-qsharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timscodebase%2Flearning-qsharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timscodebase","download_url":"https://codeload.github.com/timscodebase/learning-qsharp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242573496,"owners_count":20151707,"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":[],"created_at":"2025-03-08T16:01:34.594Z","updated_at":"2025-12-24T04:28:52.450Z","avatar_url":"https://github.com/timscodebase.png","language":"Q#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Learning Q#\n\nTim Smith\n\nLearning Q# on my M3 Macbook Air 16gb\n\n## Setup\n\n### Env\n\n```\npython3 -m venv q#_en\nsource q#_env/bin/activate\npython -m pip install qsharp azure-quantum\npython -m pip install ipykernel ipympl jupyterlab\n```\n\n### Azure/DotNET\n\n```\nbrew update \u0026\u0026 brew install azure-cli\ndotnet new install Microsoft.Quantum.ProjectTemplate\ndotnet dev-certs https --trust\ndotnet new console -lang Q# -o MyQsharpProject\n```\n\n#### Main.qs\n\n```\nnamespace EntanglementDemo {\n    open Microsoft.Quantum.Diagnostics;\n    open Microsoft.Quantum.Intrinsic;\n    open Microsoft.Quantum.Canon;\n\n    @EntryPoint()\n    operation Main() : (Result, Result) {\n        // Allocate two qubits, q1 and q2, in the 0 state.\n        use (q1, q2) = (Qubit(), Qubit());\n\n        // Put q1 into an even superposition.\n        // It now has a 50% chance of being measured as 0 or 1.\n        H(q1);\n\n        // Entangle q1 and q2, making q2 depend on q1.\n        CNOT(q1, q2);\n\n        // Show the entangled state of the qubits.\n        DumpMachine();\n\n        // Measure q1 and q2 and store the results in m1 and m2.\n        let (m1, m2) = (M(q1), M(q2));\n\n        // Reset q1 and q2 to the 0 state.\n        Reset(q1);\n        Reset(q2);\n\n        // Return the measurement results.\n        return (m1, m2);\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimscodebase%2Flearning-qsharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimscodebase%2Flearning-qsharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimscodebase%2Flearning-qsharp/lists"}