News

日本語 · English · 中文

[Contribution] The Convergence of AI and Quantum Computing: Practical Shift Optimization with QAOA and Reliability

This article introduces a process in which AI generates code and executes and verifies it on a quantum simulator. It explains how shifting optimization can be solved using QAOA, and how execution and verification can reduce the risk of hallucination. The potential for extending from a six-variable toy model to real-world problems is also discussed.

Introduction

Recently, we conducted a demonstration experiment combining artificial intelligence (AI) and quantum computing technologies. Specifically, this involved solving the "shift optimization" problem, which is critical in manufacturing and other industries, using the Quantum Approximate Optimization Algorithm (QAOA).

What stands out particularly about this attempt is that "AI generates code, it actually runs on a quantum simulator, and the results are verifiable." This serves as a powerful countermeasure against AI-specific "hallucinations" (delusions or lies).

This article explains this consistent process, its reliability, and future possibilities.

1. Process of Executing QAOA with AI

Typically, implementing quantum algorithms requires specialized knowledge and extensive code writing. However, in this experiment, the AI seamlessly handled the following steps from natural language instructions:

  • Problem Formulation: Converting the shift optimization problem into Quadratic Unconstrained Binary Optimization (QUBO) format.
  • Hamiltonian Construction: Deriving the quantum Hamiltonian from the QUBO matrix.
  • QAOA Circuit Construction: Setting optimization parameters and designing the quantum circuit.
  • Simulation Execution: Performing calculations on a quantum simulator.

This entire sequence was completed through an interactive dialogue.

2. Mitigating Hallucinations: The Importance of Verifiability

AI technologies such as Large Language Models (LLMs) have been noted for the challenge of "hallucinations," where they output information that seems plausible but is actually incorrect.

However, in this QAOA execution process, this risk is mitigated by the following points:

  • Code Executability: The quantum circuit code and parameters generated by the AI can be executed on actual quantum simulators (such as BlueQat).
  • Result Verification: The generated results (e.g., optimal solution 001001 or energy value -27.5) are actual outputs returned by the simulator. They are not correct simply because the AI said so; rather, they are based on the fact that "the calculation actually yielded these results."
  • Consistency Check: When tackling the same problem using different methods, QAOA and VQE (Variational Quantum Eigensolver), the obtained "solutions satisfying constraints" were consistent. Even if there were differences in the absolute values of the energy, the physical meaning (which shifts are valid) matched.

By establishing a cycle of "generation → execution → verification," it becomes unnecessary to blindly trust AI outputs, allowing for the acquisition of highly reliable results.

3. From Toy Models to Real-World Problems: Scalability

The experiment used a 6-variable "toy model" (a simplified model).

  • 3 employees × 2 time periods (morning/night) = 6 variables

However, this method is scalable.

  • Scaling Up: By increasing the number of variables and adding factors such as employee count, time periods, and constraints (such as vacation requests or skill requirements), it can be applied to scheduling problems in real-world manufacturing sites or logistics centers.
  • Expanding Applications: Beyond shift optimization, this approach is applicable to a wide range of fields involving combinatorial optimization problems, such as logistics route optimization (Traveling Salesman Problem), resource allocation, and manufacturing process design.

Conclusion

The combination of AI-driven code generation and quantum simulation is evolving beyond mere "convenient tools" toward establishment as a "verifiable scientific methodology."

By eliminating the risk of hallucinations through "execution and verification" and ensuring reliability before scaling up problems, this approach is considered a key factor in accelerating the practical application of quantum computers.

Moving forward, we aim to advance the application to more complex real-world problems and demonstrate their effectiveness.

This article was translated from the Japanese original. 日本語で読む

← Latest articles