Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hinshun/docker-pyquil
Docker image for https://github.com/rigetticomputing/pyquil
https://github.com/hinshun/docker-pyquil
docker forest pyquil quantum quantum-computing quil rigetti-forest
Last synced: 10 days ago
JSON representation
Docker image for https://github.com/rigetticomputing/pyquil
- Host: GitHub
- URL: https://github.com/hinshun/docker-pyquil
- Owner: hinshun
- License: mit
- Created: 2017-08-18T18:03:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-18T20:34:47.000Z (over 7 years ago)
- Last Synced: 2024-12-23T16:20:26.184Z (19 days ago)
- Topics: docker, forest, pyquil, quantum, quantum-computing, quil, rigetti-forest
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-pyquil
Docker image for https://github.com/rigetticomputing/pyquil
# Usage
Sign up for a beta API key to `Forest` from http://www.rigetti.com/forest
```
$ docker run --rm -it -v ~/.pyquil_config:/root/.pyquil_config hinshun/pyquil
Python 2.7.13 (default, Jul 18 2017, 23:48:50)
[GCC 5.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyquil.quil as pq
>>> import pyquil.api as api
>>> from pyquil.gates import *
>>> import numpy as np
>>> qvm = api.SyncConnection()
>>> p = pq.Program()
>>> p.inst(X(0)).measure(0,0)
>>> qvm.run(p, [0,1,2])
[[1, 0, 0]]
```