[Paper Review] Learning Simon's quantum algorithm
This paper demonstrates that a trainable quantum unitary network can autonomously discover Simon's quantum algorithm through gradient-based optimization. By training a parameterized quantum circuit to minimize a cost function tied to oracle query efficiency, the method recovers the exact structure of Simon’s algorithm—including Hadamard gates and entanglement—confirming that quantum neural networks can rediscover known exponential-speedup algorithms from first principles.
We consider whether trainable quantum unitaries can be used to discover quantum speed-ups for classical problems. Using methods recently developed for training quantum neural nets, we consider Simon's problem, for which there is a known quantum algorithm which performs exponentially faster in the number of bits, relative to the best known classical algorithm. We give the problem to a randomly chosen but trainable unitary circuit, and find that the training recovers Simon's algorithm as hoped.
Motivation & Objective
- To investigate whether quantum neural networks can discover quantum algorithms with exponential speedups, using Simon’s problem as a test case.
- To determine if a trainable quantum circuit can recover the full structure of Simon’s algorithm without prior knowledge of the solution.
- To assess whether the training process can converge to the optimal circuit even when initialized randomly and with minimal training data.
- To explore the feasibility of using quantum machine learning to discover new quantum algorithms beyond known examples.
Proposed method
- A parameterized quantum circuit is constructed with trainable single-qubit unitaries, replacing fixed gates like Hadamard with parameterized rotations.
- The training uses gradient descent on a cost function that quantifies the circuit’s ability to identify the secret string s using minimal oracle queries.
- The cost function is minimized by iteratively sampling random pairs of output bitstrings and accepting updates that reduce the cost.
- The method employs a reversible oracle unitary U_f that maps |x⟩|0⟩ to |x⟩|f(x)⟩, preserving quantum reversibility.
- For n=2 and n=3, the training is performed using numerical simulations with parallelized computation to accelerate convergence.
- The circuit is trained using a restricted set of single-qubit unitaries of the form G(θ) = [[cosθ, sinθ], [sinθ, -cosθ]], enabling differentiable optimization.
Experimental results
Research questions
- RQ1Can a trainable quantum unitary network discover Simon’s algorithm without prior knowledge of its structure?
- RQ2Does gradient-based optimization on a cost function related to query efficiency lead to convergence on the optimal quantum circuit?
- RQ3Can the network recover the exact Hadamard-based circuit structure of Simon’s algorithm through end-to-end training?
- RQ4Is it possible to train the network using only a single secret string instance, rather than all possible strings?
- RQ5Does the training landscape contain a local minimum corresponding to Simon’s solution, and is it globally optimal?
Key findings
- The training process successfully recovers Simon’s algorithm, including the use of Hadamard gates and entanglement, as confirmed by convergence to the known solution.
- For n=2, the cost function landscape shows that Simon’s circuit (θ₁=θ₂=π/4) lies in a local minimum, and brute-force search confirms it is globally optimal.
- For n=3, training from random initial parameters successfully reaches the minimum cost, demonstrating recovery of the algorithm despite higher complexity.
- The method achieves convergence with only one secret string example per training run, significantly reducing data requirements.
- The use of parameterized single-qubit unitaries allows effective gradient descent, and the network learns the correct entangling structure without explicit design.
- The results indicate that quantum neural networks can autonomously discover known quantum speedups, supporting the potential for algorithm discovery in quantum machine learning.
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.