Giter VIP home page Giter VIP logo

unitary's Introduction

Unitary

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 is not available as a PyPI package. Please clone this repository and install from source:

cd unitary/
pip install .

Documentation is available at https://quantumai.google/cirq/experiments.

Checking out for development

Note: before committing, you will need to sign a Contributor License Agreement (CLA).

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.

unitary's People

Contributors

dstrain115 avatar madcpf avatar mpharrigan avatar losos0 avatar cognigami avatar bartmate avatar khaledallen avatar everthemore avatar rmlarose avatar lamberta avatar solodov avatar weinstein avatar michaelbroughton avatar kevinsung avatar cantwellc avatar lingxz avatar jonathanjohnson8 avatar pawelpamula avatar mrwojtek avatar smitsanghavi avatar balopat avatar jiahaoyao avatar markdaoust avatar mattkaplan avatar wingers avatar tonybruguier-google avatar dmasspla avatar brettkoonce avatar augustehirth avatar yashk2810 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.