Skip to content
Home/ Quantum Computing for Rust Developers: Building a differential fuzzer for quantum compilers, in Rust
Quantum Computing for Rust Developers: Building a differential fuzzer for quantum compilers, in Rust

Quantum Computing for Rust Developers: Building a differential fuzzer for quantum compilers, in Rust

No customer reviews yet ISBN 9798171107352

A production quantum simulator shipped a gate with an inverted sign. Its test suite passed. Every benchmark scored on measurement counts reported perfect agreement, and would have kept reporting it forever, because that class of fault does not live in probability space at all.

Two gates are enough to show it. Apply H, then Rz(π/2), to a single qubit. A correct backend and the broken one land on states that are orthogonal - as far apart as two quantum states can be - and every measurement probability comes out identical to the last bit.

This book builds, from nothing and in Rust, the tooling that can see that difference.

What you will build:

  • A statevector simulator to 25 qubits, with every standard gate
  • An OpenQASM 2 and 3 parser that handles circuits exported from real hardware
  • Grover and QAOA, verified rather than assumed
  • A differential fuzzer: generator, oracle, shrinker, triage
  • Python bindings with PyO3, and a CI pipeline that runs the checks on every commit

What makes this book different is the chapter on finding real faults in real compilers. Not exercises - public issue numbers you can open and read. A rotation silently dropped by Qiskit's transpiler, traced to a line where Rust's % keeps the sign of the dividend and an empty range swallows the gate. A controlled-swap in NVIDIA's CUDA-Q whose export path reads the targets and never reads the control.

The two campaigns that found nothing are in here too, with the mutation testing that proves they could have found something. A tool that only ever reports findings is not a tool anyone should trust.

Running through all of it is one question, and it is not really about quantum computing: what change to the code would make this assertion fail? If you cannot answer quickly and concretely, the assertion is decoration, and the code it covers is untested.

You should already know Rust - ownership, borrowing, traits. You need no physics and no prior quantum computing. Complex numbers and matrix multiplication are enough; everything else is derived as it is used.

The author reported Qiskit issue #16594, fixed in Qiskit 2.5.1.

About the author

Product details

Pub dateSep 1, 2026
ISBN-109798171107352
ISBN-139798171107352
LanguageEnglish
Last updated 2026-09-08 02:09
$26.28 $29.99 12% off
You save $3.71 · list price $29.99
In stock — ships in 24 hours with free tracking
Delivery by Monday, September 21, 2026
Qty
Sign in to Add to Saved list
Free delivery on orders over $35.
15-day returns. Any reason.
Secure checkout. We never store card details.

Readers who bought this also bought

More from Computers | Software Development & Engineering | Quality Assurance & Testing
See all
Managing Trade-Offs in Adaptable Software Architectures
<p><i>Managing Trade-Offs in Adaptable Software Architectures </i>explores the latest research on adapting large complex systems to changing requirements. To be able to adapt a system, engineers must evaluate different quality attributes, including trade-offs to balance functional and quality requirements to maintain a well-functioning system throughout the lifetime of the system.</p> <p>This comprehensive resource brings together research focusing on how to manage trade-offs and architect adaptive systems in different business contexts. It presents state-of-the-art techniques, methodologies, tools, best practices, and guidelines for developing adaptive systems, and offers guidance for future software engineering research and practice. </p> <p>Each contributed chapter considers the practical application of the topic through case studies, experiments, empirical validation, or systematic comparisons with other approaches already in practice. Topics of interest include, but are not limited to, how to architect a system for adaptability, software architecture for self-adaptive systems, understanding and balancing the trade-offs involved, architectural patterns for self-adaptive systems, how quality attributes are exhibited by the architecture of the system, how to connect the quality of a software architecture to system architecture or other system considerations, and more.</p>
$138.90