← Latest papers
⚛️ quantum physics

Combinatorial Matrix Functions in Ising Models and Quantum Circuit Representation

This paper extends Ising models to encode all three combinatorial matrix functions (permanent, hafnian, and loop-hafnian) by introducing self-loops via additional spins, and demonstrates that the resulting loop-hafnian state can be efficiently simulated and measured on a quantum circuit using O(n2)O(n^2) gates.

Original authors: Minhyeok Kang, Gwonhak Lee, Youngrong Lim, Joonsuk Huh

Published 2026-11-02
📖 6 min read🧠 Deep dive

Original authors: Minhyeok Kang, Gwonhak Lee, Youngrong Lim, Joonsuk Huh

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the quiet corners of theoretical physics and computer science, researchers often grapple with problems that are too vast for even the most powerful supercomputers to solve directly. These are questions about counting the ways things can be arranged, specifically looking for perfect pairings within complex networks. Imagine a web of connections where every point must be linked to exactly one other point, with no leftovers. Calculating the total number of these perfect pairings for a simple network is easy, but as the network grows and becomes more intricate, the number of possibilities explodes so rapidly that it becomes practically impossible to count them all. This difficulty is not just a mathematical curiosity; it sits at the heart of understanding how certain quantum systems behave and why they are so hard to simulate on classical machines. For decades, scientists have known that specific types of these counting problems appear in the behavior of light passing through optical networks, but the mathematical tools to describe them were limited to very specific, highly symmetric shapes of networks.

A team of researchers has now expanded the reach of these tools, showing how to describe these complex counting problems using a different kind of physical system: a model of interacting magnetic spins, known as an Ising model. In this framework, the researchers showed how to encode not just the standard, symmetric networks, but also more general structures that include self-connections, where a point links to itself. By introducing a clever method to represent these self-connections using extra magnetic units, they showed that the system naturally produces three distinct types of counting functions, depending on the structure of the network. The most general of these, which they call the loop-hafnian, encompasses the other two types as special cases. The team proposed a quantum circuit to simulate this entire process using a number of operations that grows reasonably with the size of the problem, offering a new pathway to explore these difficult calculations.

The journey began with a realization that the standard magnetic model, which usually describes how spins interact with their neighbors, was too rigid to capture the full variety of these counting problems. Previous work had shown that if the network was perfectly balanced and bipartite—meaning the points could be split into two groups where connections only happened between groups, never within them—the system produced a specific counting function called the permanent. If the network was a simple graph without self-connections, it produced another function called the hafnian. However, real-world networks and more complex theoretical models often include points that connect to themselves, a feature that the existing models could not handle. The researchers set out to fix this by modifying the Ising model to include these self-connections, or "loops," without breaking the mathematical structure that made the previous results work.

To achieve this, the team introduced a new way of encoding the self-connections. Instead of trying to force a single magnetic spin to represent a self-loop, they added extra spins to the system specifically to handle these connections. When a point in the network had a self-loop, the researchers assigned it a partner spin. The interaction between the original spin and its partner was designed to mimic the effect of the self-loop. This allowed the system to naturally generate the most general counting function, the loop-hafnian, which sums up all possible perfect pairings, including those where points are paired with themselves. The beauty of this approach is that it is flexible: as the number of self-loops in the network decreases, the extra spins become less relevant, and the system smoothly transitions back to producing the simpler hafnian and permanent functions. It is as if the researchers built a single machine that could automatically reconfigure itself to solve three different types of puzzles just by changing the input.

The researchers then turned their attention to the practical question of how to actually run this simulation on a quantum computer. They showed that the interactions required to simulate the magnetic model could be broken down into a sequence of simple operations between pairs of quantum bits, or qubits. Because all the interactions in their modified model commute—meaning the order in which they are applied does not matter—the simulation could be performed without the accumulation of small errors that usually plague such calculations. They demonstrated that for a network of a certain size, the number of operations needed grows with the square of the number of points, which is considered efficient in the world of quantum computing. This means that a quantum computer could, in principle, simulate the behavior of these magnetic systems and extract the complex counting numbers directly.

A significant challenge remained in how to read the results. For the simpler cases without self-loops, the answer could be found by simply measuring the state of the magnetic spins. However, for the general case with self-loops, the system exists in a superposition of many different states at once, and a direct measurement would not reveal the specific counting number. The team solved this by designing a measurement circuit that could sort through this superposition. They showed that by performing a specific sequence of operations and then measuring the spins in a particular order, they could map the complex superposition onto a single, clear outcome. This process allowed them to show that the loop-hafnian for all possible subsets of the network can be measured simultaneously, effectively reading out the answer to the counting problem in one go.

The implications of this work extend beyond just finding a new way to calculate numbers. The researchers highlighted a fundamental difference between their magnetic approach and the optical networks used in other quantum experiments. In optical systems, the probability of a specific outcome is directly proportional to the square of the counting number, making it easy to sample from the distribution of results. In their magnetic model, the relationship is slightly more complex, involving a trade-off between the time the system evolves and the probability of observing the result. While this makes the direct application of optical network techniques difficult, the underlying hardness of the problem remains. The researchers argued that the difficulty of simulating these magnetic systems is likely just as great as that of the optical systems, suggesting that they could serve as a new platform for demonstrating quantum advantage.

By bridging the gap between different types of counting problems and showing how they can all be represented within a single, flexible magnetic model, this work opens up new avenues for exploring the limits of computation. The ability to simulate these systems with a manageable number of operations on a quantum computer suggests that we are getting closer to solving problems that were previously thought to be out of reach. The researchers have provided a clear blueprint for how to encode complex network structures into quantum hardware, offering a powerful new tool for understanding the intricate web of connections that define both the physical world and the abstract realm of mathematics.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →