Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
kmqc-1.0.1.1-py3-none-any.whl (10.0 kB) Copy SHA256 hash SHA256 Wheel py3
kmqc-1.0.1.1.tar.gz (4.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page