logosq-hardware-integrator

Crates.iologosq-hardware-integrator
lib.rslogosq-hardware-integrator
version0.1.0
created_at2026-01-20 20:21:09.838155+00
updated_at2026-01-20 20:21:09.838155+00
descriptionHardware backend integration for LogosQ quantum computing framework
homepage
repositoryhttps://github.com/WeaveITMeta/LogosQ-Hardware-Integrator
max_upload_size
id2057482
size112,382
Weave (WeaveITMeta)

documentation

https://docs.rs/logosq-hardware-integrator

README

LogosQ Hardware Integrator

A Rust crate for integrating LogosQ with quantum hardware providers, enabling seamless transitions from simulation to real QPU execution.

Features

  • Type-safe API calls: Compile-time circuit validation
  • Async support: Non-blocking job submission via Tokio
  • Multi-backend: IBM Quantum, IonQ, Google, Rigetti
  • Robust error handling: Comprehensive error types for all failure modes

Quick Start

use logosq_hardware_integrator::{IbmBackend, HardwareBackend, Circuit};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let backend = IbmBackend::new_from_env().await?;
    
    let circuit = Circuit::new(2)
        .h(0)
        .cx(0, 1)
        .measure_all();
    
    let job = backend.submit_circuit(&circuit, 1024).await?;
    let result = job.wait_for_result().await?;
    
    println!("Counts: {:?}", result.counts());
    Ok(())
}

Installation

[dependencies]
logosq-hardware-integrator = "0.1"
tokio = { version = "1.35", features = ["full"] }

Set environment variables:

export IBM_QUANTUM_TOKEN="your_token"
export IONQ_API_KEY="your_key"

License

MIT OR Apache-2.0

Commit count: 1

cargo fmt