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
gaqqie-door-0.1.0.tar.gz
(23.6 kB
view details)
Built Distribution
File details
Details for the file gaqqie-door-0.1.0.tar.gz
.
File metadata
- Download URL: gaqqie-door-0.1.0.tar.gz
- Upload date:
- Size: 23.6 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 | d462da3375f1b1e9db245af8f009d60fa504a5fb81a8627d6b59371f85c1739b |
|
MD5 | e671bcbf2769041d29430bdf27c0b55a |
|
BLAKE2b-256 | d447024c900faa5c5ea5e6794d58a355affbc62f014dd7796692ff015e8ee732 |
File details
Details for the file gaqqie_door-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: gaqqie_door-0.1.0-py3-none-any.whl
- Upload date:
- Size: 32.3 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 | 9ed3561c5d44660de23469646395fc02367d57c0db84f61740f2c95b6180c128 |
|
MD5 | 18a98ebbc75f33148b841f2af14a0f0e |
|
BLAKE2b-256 | 234819e95c0c57704e43cde929466156aac4c6d8e816782e6700a269c5156883 |