{"id":22882529,"url":"https://github.com/cqcl/guppylang","last_synced_at":"2025-04-07T13:06:22.493Z","repository":{"id":217916528,"uuid":"631900192","full_name":"CQCL/guppylang","owner":"CQCL","description":"Pythonic quantum-classical programming language","archived":false,"fork":false,"pushed_at":"2024-10-29T11:36:05.000Z","size":2367,"stargazers_count":33,"open_issues_count":100,"forks_count":2,"subscribers_count":11,"default_branch":"main","last_synced_at":"2024-10-29T11:44:32.202Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pypi.org/project/guppylang","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CQCL.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-24T09:48:07.000Z","updated_at":"2024-10-29T11:34:49.000Z","dependencies_parsed_at":"2024-03-04T15:07:01.038Z","dependency_job_id":"983e48ed-7fec-4ed5-add5-2cc1e465c19c","html_url":"https://github.com/CQCL/guppylang","commit_stats":null,"previous_names":["cqcl/guppy"],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CQCL%2Fguppylang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CQCL%2Fguppylang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CQCL%2Fguppylang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CQCL%2Fguppylang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CQCL","download_url":"https://codeload.github.com/CQCL/guppylang/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247657276,"owners_count":20974344,"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":"2024-12-13T18:18:10.544Z","updated_at":"2025-04-07T13:06:22.471Z","avatar_url":"https://github.com/CQCL.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Guppy\n\n[![pypi][]](https://pypi.org/project/guppylang/)\n[![codecov][]](https://codecov.io/gh/CQCL/guppylang)\n[![py-version][]](https://pypi.org/project/guppylang/)\n\n  [codecov]: https://img.shields.io/codecov/c/gh/CQCL/guppylang?logo=codecov\n  [py-version]: https://img.shields.io/pypi/pyversions/guppylang\n  [pypi]: https://img.shields.io/pypi/v/guppylang\n\nGuppy is a quantum programming language that is fully embedded into Python.\nIt allows you to write high-level hybrid quantum programs with classical control flow and mid-circuit measurements using Pythonic syntax:\n\n```python\nfrom guppylang import guppy\nfrom guppylang.std.builtins import owned\nfrom guppylang.std.quantum import cx, h, measure, qubit, x, z\n\n\n@guppy\ndef teleport(src: qubit @ owned, tgt: qubit) -\u003e None:\n    \"\"\"Teleports the state in `src` to `tgt`.\"\"\"\n    # Create ancilla and entangle it with src and tgt\n    tmp = qubit()\n    h(tmp)\n    cx(tmp, tgt)\n    cx(src, tmp)\n\n    # Apply classical corrections\n    h(src)\n    if measure(src):\n        z(tgt)\n    if measure(tmp):\n        x(tgt)\n\nguppy.compile_module()\n```\n\nMore examples and tutorials are available [here][examples].\n\n[examples]: ./examples/\n\n## Install\n\nGuppy can be installed via `pip`. Requires Python \u003e= 3.10.\n\n```sh\npip install guppylang\n```\n\n## Development\n\nSee [DEVELOPMENT.md](https://github.com/CQCL/guppylang/blob/main/DEVELOPMENT.md) for instructions on setting up the development environment.\n\n## License\n\nThis project is licensed under Apache License, Version 2.0 ([LICENCE][] or \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e).\n\n  [LICENCE]: ./LICENCE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcqcl%2Fguppylang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcqcl%2Fguppylang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcqcl%2Fguppylang/lists"}