Skip to main content

qio

qio is a python package to smoothly manipulate quantum computing objects between client and server.

It handle all the conversion boilerplate to focus your dev on your quantum SDK and backend on real matters.

Installation

We encourage installing qio via the pip tool (a Python package manager):

pip install qio

Getting started

To leverage qio and get quick interoperability between your frontend and your backend, you simply need to use qio wrappers system.

Here a snippet code for cirq and qsim:

import cirq

from cirq.circuits import Circuit
from qsimcirq import QSimSimulator

from qio.core import (
    QuantumComputationModel,
    QuantumComputationParameters,
    QuantumProgramResult,
    QuantumProgram,
)

#############
# Client side

qc = _random_cirq_circuit(10)
shots = 100

program = QuantumProgram.from_cirq_circuit(qc)

model_json = QuantumComputationModel(
    programs=[program],
).to_json_str()

parameters_json = QuantumComputationParameters(
    shots=shots,
).to_json_str()

# Send this to server side

###########################
# Server / Computation side

model = QuantumComputationModel.from_json_str(model_json)
params = QuantumComputationParameters.from_json_str(parameters_json)

circuit = model.programs[0].to_cirq_circuit()

qsim_simulator = QSimSimulator()

qsim_result = qsim_simulator.run(circuit, repetitions=params.shots)

program_result = QuantumProgramResult.from_cirq_result(result).to_json_str()

# Send this to back to client side

#####################
# Back to client side

cirq_result = qresult.to_cirq_result()

qiskit_result = qresult.to_qiskit_result()

Metadata

Release files for qio 0.2.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qio 0.2.8
File Size Uploaded Provenance Actions
qio-0.2.8.tar.gz 27.2 kB Without provenance Details for qio-0.2.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qio 0.2.8
File Interpreter ABI Platform Actions
qio-0.2.8-py3-none-any.whl Python 3 none any Details for qio-0.2.8-py3-none-any.whl

Total release size: 81.7 kB

Release files / qio-0.2.8.tar.gz

Download URL qio-0.2.8.tar.gz
Size 27.2 kB
Tags Source
SHA-256 checksum
How to use checksums
939dbf425879a7eba8fbe7d032dac01e9a31140c90e168ca2d2f9cde41b7d83e
BLAKE2b-256 checksum
How to use checksums
e399b7232a3f220a74d0e9fb4c7d1b10caa5a620543323278c3dacb189f22578
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / qio-0.2.8-py3-none-any.whl

Download URL qio-0.2.8-py3-none-any.whl
Size 54.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c40bac0a1ae38fa07db5bbc7663cba9f01c99245e974645671b6315bd2b3b615
BLAKE2b-256 checksum
How to use checksums
9a7d9d37651fc50a06a91a24eaa35ebad1917551325dff6e641f2f427db8acd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for qio 0.2.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.8 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page