A package for client
Project description
$ git clone https://bitbucket.org/rstm-sf/pykmqc.git
$ cd pykmqc
$ pip3 install virtualenv
$ virtualenv -p python3 venv
$ source venv/bin/activate
$ pip install -r requirements.txt
import kmqc
from kmqc import Qubit, gates, Program
qubit = Qubit(0)
p = Program()
p.append_instruction(gates.H(qubit))
endpoint = 'http://httpbin.org/post'
user_id, api_key = 'user_id', 'api_key'
conn = kmqc.connect(endpoint, user_id, api_key)
r = conn.execute(p)
print(r)
[qvm_conn]
endpoint = http://httpbin.org/post
user_id = user_id
api_key = api_key
import kmqc
from kmqc import gates, Program
p = Program(
gates.X(1),
gates.H(0),
gates.H(1),
gates.CNOT(0, 1),
gates.H(0)
)
conn = kmqc.connect(**kmqc.config('qvm_conn.ini', 'qvm_conn'))
r = conn.execute(p)
print(r)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kmqc-1.0.1.1.tar.gz
(4.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
kmqc-1.0.1.1-py3-none-any.whl
(10.0 kB
view details)
File details
Details for the file kmqc-1.0.1.1.tar.gz.
File metadata
- Download URL: kmqc-1.0.1.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3350b6d56440b73ff723f2f384a64b52d3bbddf45c1252118817af30fb127f42
|
|
| MD5 |
6d7d20eedb5018e89a2ebfb47fe76d64
|
|
| BLAKE2b-256 |
0b3b7f036581429e3beaea2a99f98576599303337248aaad1c20fdca0c0da6b7
|
File details
Details for the file kmqc-1.0.1.1-py3-none-any.whl.
File metadata
- Download URL: kmqc-1.0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88c50b9bfabe4cf8908e429fb93778e86655dabe6e4602c7f68df11a0b194a67
|
|
| MD5 |
e5cb50f229e51d75ad0dc82c9ceebb9d
|
|
| BLAKE2b-256 |
40d554416ab3d0d473b4d37129b055018f250cd0dd51b9894d1191eaca5da649
|