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 gRPC client with server address stored in an environment variable.
os.environ["FIRE_OPAL_GRPC_SERVER_ADDRESS"] = "localhost:50051"  # Update to server address

# 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.0.1.tar.gz (67.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.0.1-py3-none-any.whl (73.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qctrl_fire_opal_riken_client-0.0.1.tar.gz
  • Upload date:
  • Size: 67.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.0.1.tar.gz
Algorithm Hash digest
SHA256 f161a95bbcf0fddfec0d04db3d0e46cce52fff9314f1bee19a35f16ba25b7c58
MD5 8f44f66d08348a6fe2b7fc0f2a5283bf
BLAKE2b-256 22bd67b20ebbf13c0dcbb34387320ed8e47d26f4f04536c1a4dcc8634566b51f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qctrl_fire_opal_riken_client-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b658e5fd1bf6a2a90ac2cbc2fb4885132b14a899743eb0c188f42788ef50d34b
MD5 8c7038af76106cf8a216b775ac178eea
BLAKE2b-256 5a88f75ebafd6cf28c28467bed2847ad4ea43c7c048bc75eb7060e47aae196c6

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