This project has been archived by its maintainers, and is no longer receiving any updates.
Qibo client
The documentation of the project can be found here.
Install
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 package can be installed through pip:
pip install qibo-client
For Jupyter notebook support (including progress bars and rich UI), you can install the optional dependencies:
pip install "qibo-client[notebook]"
Quick start
Once installed, the provider allows to run quantum circuit computations on remote labs using Qibo.
:warning: Note: to run jobs on the remote cluster it is mandatory to own a validated account. Please, sign up to your preferred institution to obtain the needed token to run computations on the cluster.
The following snippet provides a basic usage example.
Replace the your-token string with your user token received during the
registration process. To check which devices are available with your account
please visit the dashboard at your institution.
import qibo
import qibo_client
# create the circuit you want to run
circuit = qibo.models.QFT(5)
# authenticate to server through the client instance
token = "your-token"
url = "your-api-endpoint"
client = qibo_client.Client(token, url)
# run the circuit
device = "device_name"
project = "project_name"
job = client.run_circuit(circuit, device=device, project=project, nshots=1024)
result = job.result()
print(result)
The device name indicates the specific system or machine that will process the
job. The project name corresponds to the project or group to which the user
belongs and which will be charged for the service usage.
Metadata
Release files for qibo-client 0.2.4
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_client-0.2.4.tar.gz | 23.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qibo_client-0.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 52.5 kB
Release files / qibo_client-0.2.4.tar.gz
| Download URL | qibo_client-0.2.4.tar.gz |
|---|---|
| Size | 23.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
649b48853291536162c0d8bcd5b64c25700ed4bae101fa0fb270c158c7640eba
|
|
BLAKE2b-256 checksum How to use checksums |
19f8673645c1be1c1dd2dd8eb28831dd879207e2e4a54fce2d72d0f2c551d09a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / qibo_client-0.2.4-py3-none-any.whl
| Download URL | qibo_client-0.2.4-py3-none-any.whl |
|---|---|
| Size | 28.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90c267a6b4b1a531bf7235a4aec9e72935b862b7a0bf9af19a7caae191c62a97
|
|
BLAKE2b-256 checksum How to use checksums |
7c75e08d31885ce027938d2219fbafe8b5525ce74b891e061c08b5d4e05b913a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|