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.6.0.tar.gz (72.3 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.6.0-py3-none-any.whl (80.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qctrl_fire_opal_riken_client-0.6.0.tar.gz
  • Upload date:
  • Size: 72.3 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.6.0.tar.gz
Algorithm Hash digest
SHA256 7d86df4973faa9cd486f0261fd4e217299e9de47558492755aba9c9f4171be37
MD5 d4e340114d0ac250f4b5a85ec9c32d9c
BLAKE2b-256 3f7bbfe9d710f8e3555ac7477c0362d85125fc29f249c6f21ba0e3d0987b6890

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qctrl_fire_opal_riken_client-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 effb68284ac4914317e5f77dc64d11370d56dc174c07435c38497e02739bdf5b
MD5 3769c7f43a65029bf0f55afb4904561e
BLAKE2b-256 b7348b099295e547be5f652f14ec3cfd9e3b7614cf85456f290cad4bd900dad1

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