Skip to main content

Fire Opal RIKEN client

Project description

Fire Opal RIKEN Client

This is the Fire Opal client integration for RIKEN quantum computing infrastructure using a gRPC client.

Architecture Overview

  • Client: Qiskit SamplerV2 implementation that sends circuits to Fire Opal server for optimization
  • Server: gRPC service that performs Fire Opal preprocessing/postprocessing

Usage

Here is a small example of how to use the Fire Opal RIKEN client with Qiskit. This will communicate with a gRPC server to perform Fire Opal pre-processing on a quantum circuit before executing it on the ibm_kobe backend. Once the job is complete, results post-processed by Fire Opal will be returned from the job.result() call.

import os
from qiskit import QuantumCircuit
from qiskit.providers import BackendV2
from fireopalrikenclient.sampler import FireOpalSampler
from fireopalrikenclient.utils.client import FireOpalClient

# Create circuit.
circuit = QuantumCircuit(2)
circuit.h(0)
circuit.cx(0, 1)
circuit.measure_all()

# Create sampler with Fire Opal preprocessing.
service = QiskitRuntimeService(token="...", instance="...", channel="ibm_quantum_platform")
sampler = FireOpalSampler(mode=service.backend("ibm_kobe"))

# Run with Fire Opal optimization.
sampler_pub = (circuit, None, 1024)
job = sampler.run([sampler_pub])
result = job.result()

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

qctrl_fire_opal_riken_client-0.3.0.tar.gz (66.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qctrl_fire_opal_riken_client-0.3.0-py3-none-any.whl (72.8 kB view details)

Uploaded Python 3

File details

Details for the file qctrl_fire_opal_riken_client-0.3.0.tar.gz.

File metadata

  • Download URL: qctrl_fire_opal_riken_client-0.3.0.tar.gz
  • Upload date:
  • Size: 66.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.11.14 Linux/6.11.0-1018-azure

File hashes

Hashes for qctrl_fire_opal_riken_client-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d1dd092b132b1d7d0918c49bb62a9bed4684ab32b8c81db2efc55df7d834ed48
MD5 7583a2b45ec91631624c7778d85381cf
BLAKE2b-256 41bd355610e56ae624782fdfc0ad2572fc1352670523e051a18baecca1016cac

See more details on using hashes here.

File details

Details for the file qctrl_fire_opal_riken_client-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for qctrl_fire_opal_riken_client-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a34e5f5b302b0bb34b60d9985bc131ec0209988b41cb374a3e842ce5ed676a9
MD5 f311e96dbe24b897a0aa63a43b6fe899
BLAKE2b-256 461f0cbe6c65a3d30e974f157af811b725472d4d75f5854f45f4ec440565c618

See more details on using hashes here.

Supported by

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