Why do repeated Azure QRE runs sometimes produce slightly different results?

Akita, Kosuke 0 Reputation points
2026-05-12T08:51:15.74+00:00

I observed that running the estimator multiple times with the exact same QASM input occasionally produces slightly different results.

Does Azure QRE internally use randomized procedures (e.g., stochastic optimization, heuristic synthesis, randomized routing, etc.) that could explain this behavior?

Azure Quantum
Azure Quantum

An Azure service that provides quantum computing and optimization solutions.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2026-05-12T09:40:53.2033333+00:00

    Hello Akita,

    Azure Quantum Resource Estimator (QRE) is generally designed to provide deterministic estimates for the same circuit and configuration inputs. However, in some cases, users may observe small variations across repeated runs of the same QASM input.

    These differences are typically related to internal compilation and optimization processes involved in fault-tolerant resource estimation, such as circuit rewriting, scheduling, layout optimization, and resource tradeoff analysis. Minor numerical precision effects or backend service updates may also contribute to slight differences in reported metrics.

    At present, the standard estimation workflow is not expected to intentionally rely on randomized synthesis or stochastic routing algorithms that would produce significantly different outputs for identical inputs. Therefore, any observed variation is usually small and within expected estimation tolerance.

    To improve reproducibility, we recommend:

    • Using the same estimation parameters, error budget, and target profile across runs
    • Comparing multiple consecutive executions to evaluate whether the variation remains within a small tolerance range
    • Reviewing whether advanced optimization or Pareto estimation settings are enabled

    The following documentation may also be helpful:

    Quickstart: Run your first resource estimate

    How to optimize run times for large programs with the resource estimator

    Retrieve the output of the Microsoft Quantum resource estimator

    Microsoft Quantum resource estimator issues

    Was this answer helpful?

    1 person found this answer helpful.

  2. Amira Bedhiafi 43,046 Reputation points MVP Volunteer Moderator
    2026-05-12T09:04:12.61+00:00

    Hello Akita !

    Thank you for posting on MS Learn Q&A.

    Repeated Azure Quantum resource rstimator runs should generally be stable when the exact same logical input, target params, estimator version and selected output point are used.

    However, small differences can happen if there is any nondeterminism in the compilation or transpilation step before QRE especially when QASM is imported through Qiskit routing or optimization or if different Pareto frontier points are being compared.

    QRE itself is a resource estimation tool not a quantum sampling backend.

    To isolate the cause, compare the pre layout logical resource counts, pin QDK/Qiskit versions, fix seed_transpiler and if Qiskit is involved and confirm that the same target parameters and estimate point are used.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.