TII Quantum Cloud Client
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 tii-quantum package can be installed through pip:
pip install tii-quantum
For Jupyter notebook support (including progress bars and rich UI), you can install the optional dependencies:
pip install "tii-quantum[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 tii_quantum
# create the circuit you want to run
circuit = qibo.models.QFT(5)
# authenticate to server through the client instance
token = "your-token"
client = tii_quantum.Client(token)
# 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 tii-quantum 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tii_quantum-0.1.2.tar.gz | 23.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tii_quantum-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.1 kB
Release files / tii_quantum-0.1.2.tar.gz
| Download URL | tii_quantum-0.1.2.tar.gz |
|---|---|
| Size | 23.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f796cea601de4a89eb8e68417f7d2711e12b700da66ecd7f36c2dea74f1ec30
|
|
BLAKE2b-256 checksum How to use checksums |
377b86874db4778bd11bcf9b047482fda2e8e2854bc950966f0f20063fce137c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / tii_quantum-0.1.2-py3-none-any.whl
| Download URL | tii_quantum-0.1.2-py3-none-any.whl |
|---|---|
| Size | 27.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7adc6ee1356b41dacef1f7b1f613ae098af1f6dfe7a4184404a0c1b735082376
|
|
BLAKE2b-256 checksum How to use checksums |
6d60fbcc9530df0eea2a1717bb4bd70bcf60aaa7d702ca14491dd1da32512802
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|