Quantum Algorithms for Magic Square Diophantine Equations

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Thanos, Dimitrios, Bonsangue, Marcello, Laarman, Alfons
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911649795932160
author Thanos, Dimitrios
Bonsangue, Marcello
Laarman, Alfons
author_facet Thanos, Dimitrios
Bonsangue, Marcello
Laarman, Alfons
contents Magic-square constraints define Diophantine systems whose solutions, in several natural families, exhibit rigid periodic structure. We study this structure in an oracle setting, where a marked set of integers is given by black-box access and the goal is to decide whether it encodes a magic square. For $3\times 3$ magic squares and weighted variants, we prove explicit periodic characterizations that reduce detection to period finding. For larger orders, we identify a class of solutions built from repeated arithmetic patterns, which can be detected via the quantum Fourier transform. We then introduce a shifted-oracle method, based on interference between an oracle and its translates, that helps reconstruct solutions in structured cases. Together, these ingredients give a quantum framework for detecting and reconstructing certain magic-square solutions under suitable assumptions. We also derive finite bounds that make some instances exhaustively solvable and obtain Shor-based criteria for certifying non-existence in restricted number-theoretic settings. As an application, we sketch a quantum communication protocol based on an oracle encoding of a large magic-square solution.
format Preprint
id arxiv_https___arxiv_org_abs_2605_04106
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Quantum Algorithms for Magic Square Diophantine Equations
Thanos, Dimitrios
Bonsangue, Marcello
Laarman, Alfons
Quantum Physics
Magic-square constraints define Diophantine systems whose solutions, in several natural families, exhibit rigid periodic structure. We study this structure in an oracle setting, where a marked set of integers is given by black-box access and the goal is to decide whether it encodes a magic square. For $3\times 3$ magic squares and weighted variants, we prove explicit periodic characterizations that reduce detection to period finding. For larger orders, we identify a class of solutions built from repeated arithmetic patterns, which can be detected via the quantum Fourier transform. We then introduce a shifted-oracle method, based on interference between an oracle and its translates, that helps reconstruct solutions in structured cases. Together, these ingredients give a quantum framework for detecting and reconstructing certain magic-square solutions under suitable assumptions. We also derive finite bounds that make some instances exhaustively solvable and obtain Shor-based criteria for certifying non-existence in restricted number-theoretic settings. As an application, we sketch a quantum communication protocol based on an oracle encoding of a large magic-square solution.
title Quantum Algorithms for Magic Square Diophantine Equations
topic Quantum Physics
url https://arxiv.org/abs/2605.04106