Qibo client interface.
Project description
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
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 this link 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 https://cloud.qibo.science/.
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"
client = qibo_client.Client(token)
# run the circuit
device = "device_name"
job = client.run_circuit(circuit, nshots=1000, device=device)
result = job.result()
print(result)
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file qibo_client-0.0.13.tar.gz
.
File metadata
- Download URL: qibo_client-0.0.13.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f350b1115739cc780126dfea41c347c7935f13bebf05ad5e12c64236aed5e6d9 |
|
MD5 | 88bf48cb5225e8be2d7f9a9e78e09ddd |
|
BLAKE2b-256 | 78d35b18ecc99650c40abc69de95f59714783a4664147d48cb5b1da2fc7d6660 |
File details
Details for the file qibo_client-0.0.13-py3-none-any.whl
.
File metadata
- Download URL: qibo_client-0.0.13-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1cf87ab739e7eb527f8c21fc3729529ebaa4b0b1113b964001cc1ad0fbf6b2f |
|
MD5 | dcc850b7c0da973bb058b1640bacad70 |
|
BLAKE2b-256 | 1a65a3b6073b08ce87cd7462722f12deeb5d91a4889c7ad90653b28bbedec8f4 |