[Paper Review] Variational Quantum Factoring
This paper proposes Variational Quantum Factoring (VQF), a hybrid quantum-classical algorithm that maps integer factorization to the ground state of an Ising Hamiltonian and uses the Quantum Approximate Optimization Algorithm (QAOA) to find approximate solutions. It achieves successful factorization of small integers (e.g., 35, 77, 1207, 56153, 291311) on noisy intermediate-scale quantum (NISQ) devices, demonstrating robustness to noise and scalability potential in near-term quantum hardware.
Integer factorization has been one of the cornerstone applications of the field of quantum computing since the discovery of an efficient algorithm for factoring by Peter Shor. Unfortunately, factoring via Shor's algorithm is well beyond the capabilities of today's noisy intermediate-scale quantum (NISQ) devices. In this work, we revisit the problem of factoring, developing an alternative to Shor's algorithm, which employs established techniques to map the factoring problem to the ground state of an Ising Hamiltonian. The proposed variational quantum factoring (VQF) algorithm starts by simplifying equations over Boolean variables in a preprocessing step to reduce the number of qubits needed for the Hamiltonian. Then, it seeks an approximate ground state of the resulting Ising Hamiltonian by training variational circuits using the quantum approximate optimization algorithm (QAOA). We benchmark the VQF algorithm on various instances of factoring and present numerical results on its performance.
Motivation & Objective
- To develop a near-term quantum algorithm for integer factorization that bypasses the fault-tolerance requirements of Shor’s algorithm.
- To address the infeasibility of Shor’s algorithm on current noisy intermediate-scale quantum (NISQ) devices due to high qubit and circuit depth demands.
- To explore the viability of variational quantum algorithms for factoring by combining classical preprocessing with quantum optimization via QAOA.
- To evaluate the performance and noise resilience of the proposed method on benchmark factorization instances.
- To identify structural challenges in the algorithm, such as the negative impact of carry bits on optimization success.
Proposed method
- Map the integer factorization problem to a ground state problem of an Ising Hamiltonian by encoding the multiplication of two n-bit factors with fixed output.
- Apply automated classical preprocessing to simplify Boolean equations, reducing the number of qubits required for the Hamiltonian representation.
- Construct a QAOA ansatz tailored to the Ising Hamiltonian, with parameters β and γ optimized via hybrid classical-quantum feedback.
- Use a combination of local and global optimization techniques to train the QAOA parameters and minimize the expectation value of the cost Hamiltonian.
- Estimate the cost function using quantum circuits with sampling noise (ν = 10,000 samples) and evaluate success probability across varying noise rates.
- Leverage symmetry in the factorization problem (p ↔ q) to identify correct solutions as distinct peaks in the output probability distribution.
Experimental results
Research questions
- RQ1Can variational quantum algorithms like QAOA solve integer factorization problems on NISQ devices with limited qubit counts and coherence times?
- RQ2How does the presence of carry bits in the multiplication circuit affect the optimization landscape and success probability of the VQF algorithm?
- RQ3To what extent is the VQF algorithm robust to Pauli noise and sampling noise in near-term quantum hardware?
- RQ4What is the impact of circuit depth and parameter optimization strategy on the success rate of factorization using VQF?
- RQ5Can classical preprocessing significantly reduce the qubit requirements for quantum factoring without compromising solution accuracy?
Key findings
- The VQF algorithm successfully factors integers such as 35, 77, 1207, 56153, and 291311 using a QAOA-based approach on simulated NISQ devices.
- The algorithm demonstrates weak dependence on Pauli error rates below a threshold, with success probability remaining approximately constant for noise rates up to 10⁻³.
- For m = 56153 and m = 77, the success probability remains stable across different noise levels and circuit depths, indicating resilience to noise.
- Distributions of measurement outcomes show two distinct peaks corresponding to the correct factor pairs (p, q), confirming the algorithm identifies valid solutions.
- Higher circuit depths (e.g., s = 8) lead to sharper and more distinct peaks in the output distribution, indicating improved convergence to the ground state.
- Preliminary results suggest that the presence of carry bits negatively impacts optimization performance, with little additional degradation per extra carry bit for fixed problem size.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.