a client library for users to access the quantum computer cloud platform 'gaqqie-sky' in gaqqie suite.
Project description
gaqqie-door: a client library for users to access the quantum computer cloud platform gaqqie-sky in gaqqie suite
This is a beta version.
What is gaqqie-door?
gaqqie-door is a client library for users to access the quantum computer cloud platform gaqqie-sky in gaqqie suite.
For more information on gaqqie, see this.
Installation
pip install gaqqie-door
How to use gaqqie-door
The currently supported quantum programming language is Qiskit.
from qiskit import QuantumCircuit, execute
from gaqqie_door import QiskitGaqqie
circuit = QuantumCircuit(2, 2)
circuit.h(0)
circuit.cx(0, 1)
circuit.measure([0, 1], [0, 1])
url = "https://<api-id>.execute-api.<region>.amazonaws.com/<stage>" # rewrite to the endpoint URL of the user API
QiskitGaqqie.enable_account(url)
backend = QiskitGaqqie.get_backend("qiskit_simulator")
job = execute(circuit, backend)
result = job.result()
print(f"result job_id={job.job_id()}, counts={result.get_counts()}")
Sample output:
result job_id=6abff77e-4fda-4880-b3a5-ea8f49ff7cf0, counts={'00': 482, '11': 542}
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gaqqie-door-0.2.0.tar.gz.
File metadata
- Download URL: gaqqie-door-0.2.0.tar.gz
- Upload date:
- Size: 26.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c02c3e136d84fcdddcec2805b2a5dc028afaa00cc5ad61022f8cc4573c0c0d13
|
|
| MD5 |
9784e5ea17e3e7de95c5d131e61cf9e9
|
|
| BLAKE2b-256 |
5daad7adf3e36206513227f61095436a35a2cc992e31cb1d0cecb937363e1d94
|
File details
Details for the file gaqqie_door-0.2.0-py3-none-any.whl.
File metadata
- Download URL: gaqqie_door-0.2.0-py3-none-any.whl
- Upload date:
- Size: 38.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8812f7552fe7d2c425f5fed1297940857d6b42105f7c98eba14c192dbba467b
|
|
| MD5 |
5539dfebca10819fcaeb609530ad8661
|
|
| BLAKE2b-256 |
4aa4aea8da4f2643c0c3c56305a67e398648dff7030d33a2b302639ae10564f5
|