You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 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.
While 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.
This repository also contains several reference applications, such as Quantum Chess, which can be
found in the quantum_chess directory.
Installation and Documentation
Unitary uses Python 3.12. It's recommended to use a virtual environment for installing Unitary to
avoid interfering with other system packages:
Please fork the repository (for instance, by using the button in the
upper right corner).
You can then clone the repository into your development environment by
using (substitute USER with your github username)
git clone https://github.com/USER/unitary.git
cd unitary
git remote add upstream https://github.com/quantumlib/unitary.git
This will clone your fork so that you can work on it, while marking the
name 'upstream' as the original repository.
You can then pull from the original and update your fork, for instance,
by doing this:
git pull upstream main
git push origin main
In order to push changes to unitary, create a branch in your fork:
git checkout -b BRANCH_NAME
Perform your changes, then commit (i.e. git commit -a) then push to your
fork:
git push origin BRANCH_NAME
This will give you a link to create a PR (pull request). Create this pull request
and pick some reviewers. Once approved, it will be merged into the original repository.
Thanks for contributing!
See Also
This code leverages Cirq as a
quantum programming language and SDK.
Unitary is not an official Google product. Copyright 2022 Google.
About
API library providing common operations for adding quantum behaviors to games.