{"id":28416907,"url":"https://github.com/quantumlib/unitary","last_synced_at":"2025-06-25T05:31:23.995Z","repository":{"id":37047575,"uuid":"481422186","full_name":"quantumlib/unitary","owner":"quantumlib","description":"API library providing common operations for adding quantum behaviors to games.","archived":false,"fork":false,"pushed_at":"2025-06-01T07:53:10.000Z","size":5325,"stargazers_count":37,"open_issues_count":29,"forks_count":28,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-06-04T07:52:26.907Z","etag":null,"topics":["api","cirq","examples","game-development","games","google","google-quantum","python","python3","quantum","quantum-algorithms","quantum-computing","quantum-information","quantum-mechanics","quantum-programming","quantum-simulation","sdk","sdk-python","simulation"],"latest_commit_sha":null,"homepage":"","language":"OpenQASM","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/quantumlib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":"SUPPORT.md","governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":".zenodo.json"}},"created_at":"2022-04-14T01:05:14.000Z","updated_at":"2025-05-20T20:48:41.000Z","dependencies_parsed_at":"2023-02-17T11:45:20.522Z","dependency_job_id":"11e1b849-a3df-48ee-a38f-0cdceec8d186","html_url":"https://github.com/quantumlib/unitary","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/quantumlib/unitary","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantumlib%2Funitary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantumlib%2Funitary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantumlib%2Funitary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantumlib%2Funitary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quantumlib","download_url":"https://codeload.github.com/quantumlib/unitary/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantumlib%2Funitary/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261812930,"owners_count":23213584,"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":["api","cirq","examples","game-development","games","google","google-quantum","python","python3","quantum","quantum-algorithms","quantum-computing","quantum-information","quantum-mechanics","quantum-programming","quantum-simulation","sdk","sdk-python","simulation"],"created_at":"2025-06-04T01:18:52.234Z","updated_at":"2025-06-25T05:31:23.978Z","avatar_url":"https://github.com/quantumlib.png","language":"OpenQASM","readme":"Unitary\n======\n\nThe Unitary library's API intends to provide common operations that enable a programmer to add behavior to their game mechanic, or game objects, based on the core principles of Quantum Information Science (QIS): Superposition, Entanglement, Interference, and Measurement.\n\nWhile the library can be used for other purposes, the Unitary library is designed for game developers. The library is an extension of Google's Cirq library, which enables people to specify circuits for quantum computing.\n\nThis repository also contains several reference applications, such as Quantum Chess, which can be\nfound in the `quantum_chess` directory.\n\n\n## Installation and Documentation\n\nUnitary uses Python 3.12. It's recommended to use a virtual environment for installing Unitary to\navoid interfering with other system packages:\n\n```sh\npython3.12 -v venv ~/unitary\nsource ~/unitary/bin/activate\n```\n\nUnitary can then be installed within that virtual environment.\n\nUnitary is not available as a PyPI package. Please clone this repository and\ninstall from source:\n\n```sh\ncd unitary/\npip install .\n```\n\nDocumentation is available at https://quantumai.google/cirq/experiments.\n\n## Checking out for development\n\nNote: before committing, you will need to sign a [Contributor License\nAgreement (CLA)](https://opensource.google/documentation/reference/cla/github).\n\nPlease fork the repository (for instance, by using the button in the\nupper right corner).  \n\nYou can then clone the repository into your development environment by\nusing (substitute USER with your github username)\n\n```sh\ngit clone https://github.com/USER/unitary.git\ncd unitary\ngit remote add upstream https://github.com/quantumlib/unitary.git\n```\n\nThis will clone your fork so that you can work on it, while marking the\nname 'upstream' as the original repository.\n\nYou can then pull from the original and update your fork, for instance,\nby doing this:\n\n```sh\ngit pull upstream main\ngit push origin main\n```\n\nIn order to push changes to unitary, create a branch in your fork:\n\n```sh\ngit checkout -b BRANCH_NAME\n```\n\nPerform your changes, then commit (i.e. `git commit -a`) then push to your\nfork:\n\n```sh\ngit push origin BRANCH_NAME\n```\n\nThis will give you a link to create a PR (pull request).  Create this pull request\nand pick some reviewers.  Once approved, it will be merged into the original repository.\n\nThanks for contributing!\n\n\n## See Also\n\nThis code leverages [Cirq](https://github.com/quantumlib/Cirq) as a\nquantum programming language and SDK.\n\nUnitary is not an official Google product. Copyright 2022 Google.\n\n","funding_links":[],"categories":["Quantum fun"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantumlib%2Funitary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquantumlib%2Funitary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantumlib%2Funitary/lists"}