← Latest papers
⚛️ quantum physics

Optimizing QAOA circuit transpilation with parity twine and SWAP network encodings

This paper introduces a simulated annealing-based method that optimizes QAOA circuit transpilation on fixed-layout quantum hardware by significantly reducing the encoding overhead of parity twine chains and SWAP networks, thereby achieving substantial decreases in circuit depth and two-qubit gate counts compared to standard transpilers.

Original authors: J. A. Montanez-Barrera, Yanjun Ji, Michael R. von Spakovsky, David E. Bernal Neira, Kristel Michielsen

Published 2026-08-12
📖 4 min read🧠 Deep dive

Original authors: J. A. Montanez-Barrera, Yanjun Ji, Michael R. von Spakovsky, David E. Bernal Neira, Kristel Michielsen

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

Imagine you are trying to organize a massive, chaotic dance party where every guest needs to hold hands with every other guest at some point to perform a special routine. Now, imagine the dance floor is a narrow, single-file hallway. In this hallway, people can only hold hands with the person immediately next to them. If Guest A needs to hold hands with Guest Z, who is at the very end of the line, they can't just reach across the crowd. They have to shuffle, swap places, and wiggle through the line until they are neighbors. This shuffling takes time, and every time two people bump into each other to swap, there's a chance they might trip, drop their hands, or mess up the routine. In the world of quantum computing, this dance floor is a quantum chip, the guests are tiny particles called qubits, and the "tripping" is a type of error that ruins the calculation. Scientists are constantly trying to figure out how to get these qubits to talk to each other efficiently without tripping over themselves, especially since current chips are like that narrow hallway and can't connect everyone to everyone else directly.

This paper is about finding the best choreography for that dance. The researchers focused on a specific algorithm called QAOA, which is used to solve complex puzzles like finding the best way to split a group of people into two teams. To make this work on a narrow, one-dimensional chip, they had to use "transpilation," which is just a fancy word for rearranging the instructions so the hardware can understand them. They tested two main ways to do the shuffling: the "SWAP network," which is like a standard, organized line dance where everyone moves step-by-step, and a newer, trickier method called "Parity Twine Chains" (PTC), which is more like encoding the information of two dancers into one person's moves to save space. The authors also invented a new "simulated annealing" technique, which is like a smart, trial-and-error coach that tries thousands of different starting lineups to find the one that requires the least amount of shuffling.

The team found that for small, sparse puzzles, the standard computer programs used by companies like IBM were actually quite good at minimizing the number of moves. However, as the puzzles got bigger and the connections between qubits became more frequent, their new methods started to shine. By using their smart coach to rearrange the starting order of the qubits, they could significantly cut down the number of times the qubits had to swap places. For a massive 120-qubit puzzle with 25% connectivity, their method shaved off 87% of the circuit depth (the time it takes to run) and 29% of the two-qubit gates (the risky moves) compared to the standard IBM software. They also tested this on real quantum computers, specifically the "ibm fez" and "ibm kingston" devices. On the "ibm fez," they managed to find the perfect solution for a 20-qubit problem using their PTC method, whereas the standard method only worked up to 15 qubits. Interestingly, on the "ibm kingston" device, the standard SWAP method actually performed slightly better than the PTC method for a specific type of problem, suggesting that sometimes having fewer moves isn't the only thing that matters; the way the information is encoded matters just as much. The researchers suggest that while their method is a powerful tool for reducing errors and saving time, it's not a magic bullet that works perfectly in every single scenario, and the best choice depends on the specific shape of the problem and the quirks of the hardware.

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 →