# FerQ: Fermat Quotient Reformulation of High-Order Binary Optimization

*Phuong Nam Nguyen, Seng Loke, Anil Prabhakar, Son N Tran*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152029) · [OpenReview](https://openreview.net/forum?id=W4U6AMYhfN) · [Open on the map](../papers.html#p152029)

Category: [AI for Molecules, Materials & Genomics](../pcat/8.md) › [Quantum Optimization and Control](../pgroup/184.md) · Type: new method · Keywords: high-order binary optimization, Fermat quotient, reformulation, QUBO embedding, quantum annealing

## Summary
FerQ provides a universal, auxiliary-free reformulation of high-order binary optimization using Fermat quotient expansion, achieving state-of-the-art performance on benchmark problems.

## Explained to a 5-year-old
We have a puzzle where we want to find the best way to set many yes/no switches that affect each other in groups of three or more. Doing this directly is very hard. We found a trick that rewrites the puzzle into a simpler form using a special math trick called the Fermat quotient, which works for any group size. This trick needs no extra pieces and can be drawn onto a quantum computer, making it faster and using less memory. The new method beats all old tricks on many tests.

## Explained to a 5-year-old, longer
Imagine you have many light switches that can be either on or off. Sometimes turning one switch on also changes other switches, especially when you look at groups of three or more switches together. Finding the best combination of on/off settings that makes everything work as well as possible is a very difficult problem. Many scientists and engineers need to solve this kind of problem in areas like making computers smarter and designing quantum computers. Existing ways to solve these puzzles often need extra helpers or take a long time to run. In this paper, the authors discovered a new mathematical trick that rewrites the puzzle into a simpler form. The trick uses something called the Fermat quotient, which works for any size of group of switches. This new rewriting needs no extra pieces, so it stays compact. It can be turned into a format that quantum computers understand, allowing the puzzle to be solved on special quantum hardware. The new method is tested on many different puzzles, including ones from computer science and physics. It performs better than all the old methods, giving more correct answers and running faster. Because it is simpler and faster, it could help researchers solve real-world problems more efficiently.

## For a technical reader
The paper presents a reformulation technique that converts high-order binary energy functions into a linear combination of Fermat quotients via a single matrix inversion, eliminating auxiliary variables. It also introduces an embedding scheme that maps the reformulated energies onto QUBO form suitable for quantum annealers, improving ancilla efficiency. Empirical evaluations on SAT, Max-SAT, p-spin glass, and local Hamiltonian benchmarks show superior satisfaction rates and lower runtime compared to existing methods.

## Problem
High-order binary optimization problems involve minimizing functions with interactions among three or more binary variables, which is computationally intractable without reformulation. Existing transformation methods often require auxiliary variables or are inefficient.

## Method
The approach expands each degree-d monomial over binary variables using the Fermat quotient, yielding an exact rational linear combination of Fermat quotients evaluated on a scalar aggregate, with coefficients obtained via a single matrix inversion. This provides a universal reformulation without auxiliary variables. Additionally, a qubit-efficient embedding scheme maps the reformulated energies onto QUBO form for quantum annealers.

## Results
The approach attains the highest satisfaction and weighted satisfaction rates on all evaluated benchmarks and runs faster than existing methods.

## Contributions
It introduces a universal, auxiliary-free reformulation of high-order energy functions based on Fermat quotient expansion and provides a qubit-efficient embedding for quantum annealers.

## Practical relevance
Enables efficient deployment of high-order binary optimization problems on quantum annealers with reduced ancilla overhead.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152029)
