COOLJAPAN
← All posts

QuantRS2 0.1.1 Released — Clean Builds Across Every Feature Flag

The first patch for QuantRS2, the pure-Rust quantum computing framework. Fixes conditional compilation and feature gating for cloud backends (IBM, Azure, AWS) and photonic modules so the modular workspace builds cleanly with any feature set.

release quantrs2 quantum-computing rust feature-flags pure-rust patch

Ship the framework, then tighten the bolts.

Today we released QuantRS2 0.1.1 — a same-day patch that makes the modular quantum framework build cleanly in every feature configuration.

QuantRS2 (/kwɒntərz tu:/) is a comprehensive, pure-Rust quantum computing framework: simulation, algorithm development, and hardware interaction. No C. No Fortran. No CUDA toolkit. No Python runtime. Where the incumbents lean on Qiskit, Cirq, Stim, and cuQuantum, QuantRS2 compiles down to a single static binary — and to WASM when you want quantum circuits in the browser.

This is the first patch after the 0.1.0 debut, shipped the same day. Nothing glamorous: it is a build-hygiene release. But for a workspace this modular, build hygiene is a feature.

Why 0.1.1 matters

QuantRS2 is built so you enable only the backends you actually need. Targeting IBM Quantum? Turn on the IBM client. Running on Azure Quantum, AWS Braket, or D-Wave? Flip those features instead. Doing photonic work? There’s a module for that too. Most users never need all of them at once, and the design respects that.

The trade-off with a feature matrix that large is that some combinations slip through at launch. A few of ours did. 0.1.1 hardens the conditional compilation so a minimal feature set — or any subset — compiles without errors. Concretely:

If you only want a state-vector simulator and a circuit builder, you should never pay for a cloud SDK you didn’t ask for. After 0.1.1, you don’t.

Getting Started

Add the core trio:

cargo add quantrs2-core quantrs2-circuit quantrs2-sim

Then build a Bell state and run it on the state-vector simulator:

use quantrs2_circuit::builder::Circuit;
use quantrs2_sim::statevector::StateVectorSimulator;

fn main() {
    // Create a circuit with 2 qubits
    let mut circuit = Circuit::<2>::new();

    // Build a Bell state circuit: H(0) followed by CNOT(0, 1)
    circuit.h(0).unwrap()
           .cnot(0, 1).unwrap();

    // Run the circuit on the state vector simulator
    let simulator = StateVectorSimulator::new();
    let result = circuit.run(simulator).unwrap();

    for (i, prob) in result.probabilities().iter().enumerate() {
        let bits = format!("{:02b}", i);
        println!("|{}⟩: {:.6}", bits, prob);
    }
}

Add quantrs2-device only when you’re ready to target real hardware — that’s where the IBM, Azure, AWS, and D-Wave backends live.

What’s New in 0.1.1

Fixed

Changed

No new algorithms, no API changes, no benchmark changes. Just a framework that compiles in every shape you ask of it.

Tips

Built on SciRS2

QuantRS2 rides on the SciRS2 ecosystem (v0.1.2) for its numerical foundation — arrays, linear algebra, parallelism, and GPU support via scirs2-core — alongside NumRS2, OptiRS, and Oxicode in the young, pure-Rust COOLJAPAN stack. It’s early days, and the foundation is growing fast.

Repository: https://github.com/cool-japan/quantrs

Star the repo if a sovereign, pure-Rust quantum stack is something you want to see grow.

Pure Rust quantum computing is here — fast, safe, and sovereign.

KitaSan at COOLJAPAN OÜ January 21, 2026

↑ Back to all posts