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())
Metadata
Release files for qibo-cloud-backends 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qibo_cloud_backends-0.0.6.tar.gz | 10.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qibo_cloud_backends-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.3 kB
Release files / qibo_cloud_backends-0.0.6.tar.gz
| Download URL | qibo_cloud_backends-0.0.6.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c4819d1c71e91aab00ef63f7147c1a6236eccf0739248befa231722b264723d
|
|
BLAKE2b-256 checksum How to use checksums |
341dcd8781ab2d3f55707fab990763146ada648c969cfa472c3a76ec5b767c52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / qibo_cloud_backends-0.0.6-py3-none-any.whl
| Download URL | qibo_cloud_backends-0.0.6-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c5d47bf49401fc815e3cc8621eb5e40a4b8a7a8521bec1a8a1a1415d88e3206b
|
|
BLAKE2b-256 checksum How to use checksums |
6cfe70bd382d028215ee0ba8631fbc1534134ddb3a3debb84f6ab0e319e191ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|