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 remote labs using Qibo.

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

The following snippet provides a basic usage example. Replace the your-token string with your user token received during the registration process. To check which devices are available with your account please visit the dashboard at your institution.

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-token"
url = "your-api-endpoint"
client = qibo_client.Client(token, url)

# run the circuit
device = "device_name"
project = "project_name"
job = client.run_circuit(circuit, device=device, project=project, nshots=1024)
result = job.result()
print(result)

The device name indicates the specific system or machine that will process the job. The project name corresponds to the project or group to which the user belongs and which will be charged for the service usage.

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.2.3.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qibo_client-0.2.3-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file qibo_client-0.2.3.tar.gz.

File metadata

  • Download URL: qibo_client-0.2.3.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qibo_client-0.2.3.tar.gz
Algorithm Hash digest
SHA256 ea5861d42a5b824d1a232681cfaaae0cbdbe6c2862ab8f8d44d1020213c914c7
MD5 3a84fc5470446068f7f4d697a36b1675
BLAKE2b-256 482197143fc44deaffb48738d0145931cb4b3e95f668eb3a0dc08200e4c3c3ba

See more details on using hashes here.

File details

Details for the file qibo_client-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: qibo_client-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qibo_client-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8a514de2ed2a00e524291a3b1716ac4e56e19c5502af2b42cb4c104d824a9121
MD5 976856a3d167959733ea30f23c6975c4
BLAKE2b-256 c19287b7021ae5d3a7da8ccadf14f51d51d3c1ce3a94c8c3fbd3488daab8a522

See more details on using hashes here.

Supported by

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