Skip to main content

Qibo backends for client interface.

Project description

Qibo cloud backends

For the complete documentation please refer to qibo-cloud-backends

Installation instructions

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-backends package can be installed through pip:

   pip install qibo-cloud-backends

Quickstart

Once installed, the plugin allows for setting and using the new backends in Qibo.

The following two examples show how to submit a job on the TII cluster and the IBM servers. Remember to replace "your token" string with your actual valid token received after registration. Alternatively, you can register your token under the environment variables QIBO_CLIENT_TOKEN for qibo-client and IBMQ_TOKEN for qiskit-client.

Prepare a QFT circuit to be submitted to the servers:

   import qibo

   circuit = qibo.models.QFT(5)
   circuit.add(qibo.gates.M(0, 2, 4))

Then, to simulate the circuit on the TII cluster through the sim platform:

   qibo.set_backend("qibo-cloud-backends", client="qibo-client", token="your_token", platform="sim")
   result = circuit()
   print(result.frequencies())

or, in order to run on one of the chips hosted in ibm-q, e.g. ibm_kyiv:

   qibo.set_backend("qibo-cloud-backends", client="qiskit-client", token="your_token", platform="ibm_kyiv")
   result = circuit()
   print(result.frequencies())

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_cloud_backends-0.0.5.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

qibo_cloud_backends-0.0.5-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file qibo_cloud_backends-0.0.5.tar.gz.

File metadata

  • Download URL: qibo_cloud_backends-0.0.5.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for qibo_cloud_backends-0.0.5.tar.gz
Algorithm Hash digest
SHA256 077efca8a7f82792f76c380a8a2e98d4a16e699b2c7d07f8deaddf039ffeb8fa
MD5 a01f366be8f929f0e34105c3083ff33c
BLAKE2b-256 9c70f2f9a65d23b9a8eac4c5f3805b4f475627c4607a8bafa746c41e5b91885f

See more details on using hashes here.

File details

Details for the file qibo_cloud_backends-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for qibo_cloud_backends-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 23462b42fbe4cdcb881fd3e8eaf1e2745e596e73cc42d1d600a91de5a3c519e5
MD5 59df38448e0c36abafde7e65f9c9bb47
BLAKE2b-256 2fa130e2b1cc7609d2e9af07b14c0bd011198445c7f32717d811192b2641d640

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