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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c38a2eaeb322afe8c53668fed1f2e4abd19d05f7121fbe091e60efc4d1b94524 |
|
MD5 | 4b47d120e52c4c9aeb6228bcd23ab030 |
|
BLAKE2b-256 | cb4344e9727aea6913910e1713ee6f1622ea7483d52008307786f1411b99bc8c |
Hashes for qibo_cloud_backends-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1460c6c114f90cd6239e87b78a475d6624bdc59ab96b87cba2e7d9f3d5229193 |
|
MD5 | 198bc223f65d15f7eecb19678c4563a5 |
|
BLAKE2b-256 | fc7d0e7c18c84b12a45da5fc423f60f117f3a558852c3a8267aa3abf89646035 |