Abstract
Noisy intermediate-scale quantum algorithms require novel paradigms of error mitigation. To obtain noise-robust quantum computers, each logical qubit is equipped with hundreds or thousands of physical qubits. However, it is not possible to use memory-consuming techniques for current quantum devices having at most hundreds or thousands of physical qubits on their own. For specific problems, valid quantum states have a unique structure as in the case of Fock states and $W$ states where the Hamming weight is fixed, and the evolution takes place in a smaller subspace of the full Hilbert space. With this preknowledge, some errors can be detected during the evolution of the circuit, by filtering the states not obeying the pattern through postselection. In this paper, we present mid-circuit postselection schemes for frequently used encodings such as one-hot, binary, gray, and domain-wall encoding. For the particular subspace of one-hot states, we propose a method that works by compressing the full Hilbert space to a smaller subspace, allowing projecting to the desired subspace without using any ancilla qubits. We demonstrate the effectiveness of the approach for the quantum alternating operator ansatz algorithm. Our method is particularly suitable for the currently available hardware, where measuring and resetting are possible, but classical conditional operators are not.
Introduction
In the current Noisy Intermediate-Scale Quantum (NISQ) era, hardware limitations prevent the implementation of full-scale Quantum Error Correction (QEC). QEC typically requires a massive overhead in physical qubits to protect a single logical qubit—a resource-intensive requirement that exceeds the capacity of today's devices. Consequently, research has shifted toward error mitigation: techniques that reduce the impact of noise without the full overhead of QEC.
Many quantum algorithms, particularly those targeting combinatorial optimization, operate within a restricted "valid" subspace of the total Hilbert space. For instance, in a one-hot encoding where only one bit can be active at a time, any state with multiple active bits is identifiable as an error. This paper explores leveraging these structural constraints through mid-circuit measurements to prune "illegal" states during computation.
Methods
The authors propose two primary mid-circuit post-selection strategies tailored to common data encodings:
Filtering
Filtering utilizes ancilla (extra) qubits to verify specific properties of the quantum state, such as the Hamming weight. By entangling the system qubits with ancillas and performing mid-circuit measurements, the system can detect transitions into invalid subspaces. If a measurement indicates an error, the current execution branch is discarded. This method is effective for encodings like one-hot, k-hot, binary, Gray, and domain-wall.
Compression
For one-hot encodings, a more efficient "compression" method is introduced. This approach uses a unitary transformation to map the valid subspace into a smaller set of qubits. Any noise-induced transitions into invalid states are mapped to "leftover" qubits. Measuring these qubits allows for error detection without the need for additional ancillas, making it highly suitable for qubit-constrained NISQ hardware.
Results and Discussion
The effectiveness of these schemes was evaluated using simulated instances of the Travelling Salesman Problem (TSP) under various noise models, including amplitude damping, depolarizing, and bit-flip noise.
Key findings include:
- Performance Gain: Mid-circuit post-selection yielded a stable ~15% improvement in energy accuracy for TSP optimization compared to standard end-of-circuit post-selection.
- Error Propagation Control: By catching errors mid-circuit, the methods prevent the "pollution" of the quantum state, which otherwise spreads and compounds as the circuit depth increases.
- Optimization Efficiency: Interestingly, the researchers found that error mitigation does not necessarily need to be active during the classical optimization loop of a Variational Quantum Algorithm (VQA). Parameters can be optimized on noisy hardware, with the high-fidelity results obtained by applying mid-circuit checks during the final inference phase.
Conclusion
Mid-circuit measurement and post-selection represent a practical path forward for NISQ-era error mitigation. By exploiting the inherent structure of problem encodings, these methods provide significant fidelity improvements with minimal qubit overhead. Future work will focus on determining the optimal frequency of these checks to balance the benefits of error pruning against the noise introduced by additional gates and measurements.
Summary updated