unitary

API library providing common operations for adding quantum behaviors to games.

https://github.com/quantumlib/unitary

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.4%) to scientific vocabulary

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
Last synced: 6 months ago · JSON representation

Repository

API library providing common operations for adding quantum behaviors to games.

Basic Info
  • Host: GitHub
  • Owner: quantumlib
  • License: apache-2.0
  • Language: OpenQASM
  • Default Branch: main
  • Homepage:
  • Size: 5.15 MB
Statistics
  • Stars: 39
  • Watchers: 10
  • Forks: 28
  • Open Issues: 22
  • Releases: 0
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
Created almost 4 years ago · Last pushed 6 months ago
Metadata Files
Readme Contributing License Code of conduct Security Support Authors Zenodo

README.md

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 uses Python 3.12. It's recommended to use a virtual environment for installing Unitary to avoid interfering with other system packages:

sh python3.12 -v venv ~/unitary source ~/unitary/bin/activate

Unitary can then be installed within that virtual environment.

Unitary is not available as a PyPI package. Please clone this repository and install from source:

sh 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)

sh 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:

sh git pull upstream main git push origin main

In order to push changes to unitary, create a branch in your fork:

sh git checkout -b BRANCH_NAME

Perform your changes, then commit (i.e. git commit -a) then push to your fork:

sh 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.

Owner

  • Name: quantumlib
  • Login: quantumlib
  • Kind: organization

Google's open source code library for the quantum world

GitHub Events

Total
  • Create event: 11
  • Issues event: 7
  • Watch event: 8
  • Delete event: 10
  • Member event: 1
  • Issue comment event: 17
  • Push event: 33
  • Pull request review event: 51
  • Pull request review comment event: 24
  • Pull request event: 57
  • Fork event: 1
Last Year
  • Create event: 11
  • Issues event: 7
  • Watch event: 8
  • Delete event: 10
  • Member event: 1
  • Issue comment event: 17
  • Push event: 33
  • Pull request review event: 51
  • Pull request review comment event: 24
  • Pull request event: 57
  • Fork event: 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 15
  • Total pull requests: 116
  • Average time to close issues: 4 months
  • Average time to close pull requests: 19 days
  • Total issue authors: 7
  • Total pull request authors: 11
  • Average comments per issue: 0.73
  • Average comments per pull request: 0.25
  • Merged pull requests: 91
  • Bot issues: 0
  • Bot pull requests: 20
Past Year
  • Issues: 5
  • Pull requests: 65
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 7 days
  • Issue authors: 2
  • Pull request authors: 4
  • Average comments per issue: 0.8
  • Average comments per pull request: 0.23
  • Merged pull requests: 49
  • Bot issues: 0
  • Bot pull requests: 20
Top Authors
Issue Authors
  • mhucka (5)
  • dstrain115 (4)
  • cantwellc (1)
  • smitsanghavi (1)
  • pavoljuhas (1)
  • senecameeks (1)
  • lanafs (1)
Pull Request Authors
  • mhucka (35)
  • madcpf (28)
  • dstrain115 (25)
  • dependabot[bot] (20)
  • solodov (14)
  • pavoljuhas (8)
  • losos0 (5)
  • dmasspla (2)
  • LuukvandenNouweland (2)
  • lanafs (2)
  • smitsanghavi (1)
Top Labels
Issue Labels
Pull Request Labels
dependencies (20) devops (20) status/waiting-for-reply (1)