Python SDK to BlueQubit app
Project description
Quick Start
-
Register on https://app.bluequbit.io and copy the API token.
-
Install Python SDK from PyPI:
pip install bluequbit
- An example of how to run a Qiskit circuit using the SDK:
import qiskit
import bluequbit
bq_client = bluequbit.init("<token>")
qc_qiskit = qiskit.QuantumCircuit(2)
qc_qiskit.h(0)
qc_qiskit.x(1)
job_result = bq_client.run(qc_qiskit, job_name="testing_1")
state_vector = job_result.get_statevector()
# returns a NumPy array of [0. +0.j 0. +0.j 0.70710677+0.j 0.70710677+0.j]
- An example of how to run a Pennylane circuit:
import pennylane as qml
from pennylane import numpy as np
dev = qml.device('bluequbit.cpu', wires=1, token="<token>")
@qml.qnode(dev)
def circuit(angle):
qml.RY(angle, wires=0)
return qml.probs(wires=0)
probabilities = circuit(np.pi / 4)
# returns a NumPy array of [0.85355339 0.14644661]
To use the Pennylane plugin, you must have pennylane
version 0.37 or above installed.
- This SDK requires Python versions 3.9 or above. But we recommend using Python 3.10 or above. The package is tested extensively on Python 3.10.
Full reference
Please find detailed reference at https://app.bluequbit.io/sdk-docs.
Questions and Issues
Please submit questions and issues to info@bluequbit.io.
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 bluequbit-0.9.1b1.tar.gz
.
File metadata
- Download URL: bluequbit-0.9.1b1.tar.gz
- Upload date:
- Size: 33.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd9492264a369cf19164410962ddbfd64dbfe2653affb01a86fff5b63103cfc0 |
|
MD5 | c4a198787e064bece411a95bfde7ae85 |
|
BLAKE2b-256 | fe55812471d49e7718b087eeed937321e0af52a8da39c6834f98f6482f16f3c4 |
Provenance
The following attestation bundles were made for bluequbit-0.9.1b1.tar.gz
:
Publisher:
release.yml
on BlueQubitDev/bluequbit-python-sdk
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
bluequbit-0.9.1b1.tar.gz
- Subject digest:
fd9492264a369cf19164410962ddbfd64dbfe2653affb01a86fff5b63103cfc0
- Sigstore transparency entry: 148312927
- Sigstore integration time:
- Predicate type:
File details
Details for the file bluequbit-0.9.1b1-py3-none-any.whl
.
File metadata
- Download URL: bluequbit-0.9.1b1-py3-none-any.whl
- Upload date:
- Size: 43.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8efde9c92b298579134c01d1a2a9db3fbf3a19c539c8939aaa172685a6c58c7e |
|
MD5 | 291dbdfc42cfacd42f8c7c9e72fc4d93 |
|
BLAKE2b-256 | 36c5138ad9b0405935a245ec1ca4efe4c26eae2c447f087794304255b96317d9 |
Provenance
The following attestation bundles were made for bluequbit-0.9.1b1-py3-none-any.whl
:
Publisher:
release.yml
on BlueQubitDev/bluequbit-python-sdk
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
bluequbit-0.9.1b1-py3-none-any.whl
- Subject digest:
8efde9c92b298579134c01d1a2a9db3fbf3a19c539c8939aaa172685a6c58c7e
- Sigstore transparency entry: 148312929
- Sigstore integration time:
- Predicate type: