| Crates.io | logosq-hardware-integrator |
| lib.rs | logosq-hardware-integrator |
| version | 0.1.0 |
| created_at | 2026-01-20 20:21:09.838155+00 |
| updated_at | 2026-01-20 20:21:09.838155+00 |
| description | Hardware backend integration for LogosQ quantum computing framework |
| homepage | |
| repository | https://github.com/WeaveITMeta/LogosQ-Hardware-Integrator |
| max_upload_size | |
| id | 2057482 |
| size | 112,382 |
A Rust crate for integrating LogosQ with quantum hardware providers, enabling seamless transitions from simulation to real QPU execution.
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(())
}
[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"
MIT OR Apache-2.0