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_osaka:

   qibo.set_backend("qibo-cloud-backends", client="qiskit-client", token="your_token", platform="ibm_osaka")
   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.4.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

qibo_cloud_backends-0.0.4-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qibo_cloud_backends-0.0.4.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for qibo_cloud_backends-0.0.4.tar.gz
Algorithm Hash digest
SHA256 08e7996366285e413bf482e6eb207cd0897784ca9ff2b0bc671e361bb355ff81
MD5 8b962abbe2af3e2a1a0c2b78766a7e77
BLAKE2b-256 005b112e347d412255ebe2f5f15a25ef460336273bbaae6a73e915e33a6f6bd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qibo_cloud_backends-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4eff59997e6428a41878fbecf97c2d7e8df29e5fb08f09b09d895a1712db8276
MD5 994a6d5e46331b5c38f95d50a416201c
BLAKE2b-256 89ac6270df0584285d205da1b08d8bd48c0b4d6e24018f673ea78dae90a4b41f

See more details on using hashes here.

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