Skip to main content

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.

License

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


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.2.0.tar.gz (26.1 kB view hashes)

Uploaded Source

Built Distribution

gaqqie_door-0.2.0-py3-none-any.whl (38.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page