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.8.0.tar.gz (74.2 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.8.0-py3-none-any.whl (82.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qctrl_fire_opal_riken_client-0.8.0.tar.gz
  • Upload date:
  • Size: 74.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.11.15 Linux/6.17.0-1010-azure

File hashes

Hashes for qctrl_fire_opal_riken_client-0.8.0.tar.gz
Algorithm Hash digest
SHA256 fec24522d1a6e7a5bfe87922af6fb90a6ed9fa3e9d144eb60315dfadf4f79a0f
MD5 76cc47769b0ff3728aaebd4ccc511fbb
BLAKE2b-256 ca2cf4b56a1bee53e1e18edfc96a8512b70ef40ea055a3698105428d110be211

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qctrl_fire_opal_riken_client-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e6826867298124dba175a71ecb618df8e26c0b6bdf7f06390acba0961330823
MD5 697ab4e3c8bf4df2a1841f145c7107c2
BLAKE2b-256 b54ad5a2dbf4bf62de755a85e47b84e9835fd27d6d2c41e774b97bd90cdbe1fd

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