mqt.bench.benchmarks.mlqae

Maximum Likelihood Quantum Amplitude Estimation benchmark definition.

Based on Suzuki et al., “Amplitude Estimation without Phase Estimation” (2020). https://arxiv.org/abs/1904.10246

Module Contents

create_circuit(num_qubits: int, num_rounds: int = 3, b_max: float = np.pi / 4, *, for_loop: bool = False) → QuantumCircuit[source]

Build the measurement circuit for maximum-likelihood amplitude estimation.

The schedule in Sec. 4.2 of Suzuki et al. (https://arxiv.org/abs/1904.10246) starts with state preparation alone. Round \(k \geq 1\) applies \(2^{k-1}\) Grover iterations after state preparation. The circuit resets all qubits between rounds.

Parameters:
  • num_qubits – Total width, including one objective qubit. Must be at least 1.

  • num_rounds – Number of amplified rounds after the unamplified round. Must be at least 1.

  • b_max – Upper integration limit. Must be positive and finite.

  • for_loop – Use a structured loop for the Grover iterations within each round.

Returns:

A circuit that records the objective qubit for round k in classical bit k. The maximum-likelihood fit is a separate classical step.