A QUBO Formulation for the Generalized LinkedIn Queens and Takuzu/Tango Game

This paper presents a versatile QUBO formulation for solving generalized versions of logic puzzles like the LinkedIn Queens, Takuzu, and Tango games, while also introducing new chess-based problems and optimizing the model for execution on quantum hardware via Quantum Annealing or QAOA.

Original authors: Alejandro Mata Ali, Edgar Mencia

Published 2026-05-01
📖 5 min read🧠 Deep dive

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 a master puzzle designer trying to teach a very specific, super-fast robot how to solve logic games. This paper is essentially a "instruction manual" written in a special code called QUBO (Quadratic Unconstrained Binary Optimization). Think of QUBO as a universal language that quantum computers understand, where every rule of a game is translated into a mathematical "energy cost." The robot's goal is to find the arrangement of pieces that results in the lowest possible energy (zero cost), which corresponds to the perfect solution.

Here is a breakdown of the paper's main ideas using everyday analogies:

1. The Core Concept: The "Energy" Game

The authors are taking popular logic puzzles and rewriting their rules so a quantum computer can solve them.

  • The Metaphor: Imagine a hilly landscape where every possible arrangement of a puzzle is a point on the map. A "bad" arrangement (where rules are broken) is a high mountain peak. A "perfect" arrangement is a deep valley. The QUBO formula is a map that tells the quantum computer exactly how steep the hills are. The computer "rolls downhill" until it finds the deepest valley, which is the solution.

2. The Queens Games (LinkedIn & N-Queens)

The classic N-Queens problem asks you to place NN queens on a chessboard so none can attack each other.

  • The Old Rule: Queens can't share a row, column, or any diagonal line.
  • The LinkedIn Twist: The paper looks at a newer version (LinkedIn Queens) where the diagonal rule is "softer." Queens can't attack each other if they are right next to each other diagonally, but they can ignore queens further away. Also, the board is divided into colored regions, and you must place exactly one queen in each region.
  • The Paper's Contribution: The authors created a flexible "recipe" (QUBO formulation) that can handle:
    • Standard N-Queens.
    • LinkedIn's softer rules.
    • Irregular board shapes (like a board with missing corners).
    • Boards that wrap around like a donut (Toroidal), where a piece leaving the right edge reappears on the left.
    • The "Tents & Trees" Game: They adapted their recipe for a game where you must place tents next to trees without any tents touching each other, even diagonally.

3. The "Chess Piece" Expansion

The authors realized their recipe wasn't just for Queens. They generalized it for any chess piece.

  • The Coloured Chess Piece Problem: Imagine a board where different colored zones must each contain exactly one piece. The pieces can be Rooks, Bishops, or Knights, and they have different ways of moving. The goal is to fit as many as possible without them threatening each other.
  • The Max Chess Pieces Problem: Here, the goal is simply to pack the board with as many pieces as possible without them attacking each other. The authors added a "reward" in their math formula: every time you successfully place a piece, the energy goes down a little bit, encouraging the computer to fill the board.

4. The Takuzu and Tango Games

These are grid-filling games (like Sudoku but with 0s and 1s, or Suns and Moons).

  • The Rules:
    1. Every row and column must have an equal number of 0s and 1s.
    2. You can't have three of the same symbol in a row (no "000" or "111").
    3. Tango (LinkedIn's version): Adds special symbols between cells. An "=" means the two cells must be the same; an "x" means they must be different.
    4. Classic Takuzu: Adds a hard rule that no two rows can be identical, and no two columns can be identical.
  • The Paper's Breakthrough:
    • They created a perfect QUBO recipe for Tango and the local rules of Takuzu.
    • The Hard Part: The "no identical rows" rule in classic Takuzu is tricky for quantum computers. The authors solved this by introducing "Witness Variables."
    • The Analogy: Imagine you have two rows of people and you need to prove they are different. You hire a "witness" for every pair of rows. The witness's job is to point to exactly one column where the two rows differ. If the witness can't find a difference, the penalty (energy) goes up. This allows the quantum computer to enforce the "no identical rows" rule perfectly without needing extra "slack" variables that waste resources.

5. Why This Matters (According to the Paper)

The paper doesn't claim these puzzles will cure diseases or predict the stock market. Instead, it claims to provide a universal toolkit for turning these specific logic puzzles into a format that quantum hardware (like D-Wave machines) or quantum algorithms (like QAOA) can actually run.

  • Optimization: They managed to reduce the number of "variables" (the number of switches the computer has to flip) and interactions, making the problems smaller and more likely to fit on current quantum computers.
  • Flexibility: Their formulas can handle weird board shapes, different numbers of pieces per row, and even boards that wrap around in circles.

In Summary:
The authors took a bunch of popular logic games (Queens, Tents, Takuzu, Tango) and wrote a single, adaptable "translation guide" that turns their rules into a language quantum computers can speak. They also invented a clever trick using "witnesses" to solve the hardest part of the Takuzu puzzle, ensuring the solution is mathematically perfect.

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 →