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.
Prepare a QFT circuit to be submitted to the servers:
from qibo.models import QFT
from qibo import gates
circuit = qibo.models.QFT(5)
circuit.add(gates.M(0, 2, 5))
Then, to simulate the circuit on the TII
cluster through the sim
platform:
from qibo.backends import set_backend
set_backend("qibo-cloud", token="your_token", provider="TII", platform="sim")
result = circuit()
print(result.frequencies())
or, in order to use the ibmq_qasm_simulator
platform on the IBM ibm-q
server:
set_backend("qiskit", token="your_token", provider="ibm-q", platform="ibmq_qasm_simulator")
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
Built Distribution
Hashes for qibo_cloud_backends-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e448ec8addfe431d5cac4b1d7f6d052665e880bf9f4ac81dead17771e60ce890 |
|
MD5 | abd728b9eb6f2ede16b7a7e9d4ad326a |
|
BLAKE2b-256 | 639999c4303a138fe6056c0a3f312c86f7f0d1eefec37379c8ad7e4ece575a44 |
Hashes for qibo_cloud_backends-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17dde866b3e141f08da99cb8f0578cf9a925411e144ffe75480c5b9af447cbbb |
|
MD5 | 053ede2c8fafdaee12a821ebf92f3cc4 |
|
BLAKE2b-256 | 0d0c9f9d0a2f44629f7addf877bb24e548eb959a8ce5d1aa7d2ea24227c300b4 |