Skip to main content

Qibo client interface.

Project description

Qibo client

The documentation of the project can be found here.

Install

Install first the package dependencies with the following commands.

We recommend to start with a fresh virtual environment to avoid dependencies conflicts with previously installed packages.

python -m venv ./env
source activate ./env/bin/activate

The qibo-client package can be installed through pip:

pip install qibo-client

Quick start

Once installed, the provider allows to run quantum circuit computations on the TiiQ remote server.

:warning: Note: to run jobs on the remote cluster it is mandatory to own a validated account. Please, sign up to this link to obtain the needed token to run computations on the cluster.

The following snippet provides a basic usage example. Replace the your-tii-qrc-token string with your user token received during the registration process.

import qibo
import qibo_client

# create the circuit you want to run
circuit = qibo.models.QFT(5)

# authenticate to server through the client instance
token = "your-tii-qrc-token"
client = qibo_client.TII(token)

# run the circuit
result = client.run_circuit(circuit, nshots=1000, dev="sim")

Project details


Download files

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

Source Distribution

qibo_client-0.0.4.tar.gz (9.0 kB view hashes)

Uploaded Source

Built Distribution

qibo_client-0.0.4-py3-none-any.whl (10.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page