Skip to content
Preprint

MoMPy: automated construction of moment matrices for semidefinite programming relaxations

Aug 2026 · 0 citations · 66 references
Physics

TL;DR

Generality is demonstrated on a tripartite Mermin inequality, the bipartite CHSH inequality, measurement compatibility in a steering scenario, state discrimination and dimension witnessing in prepare-and-measure scenarios, device-independent randomness certification, and certification of deterministic correlations from known ensembles.

Abstract

We present MoMPy, an open-source Python package that provides a unified, declarative construction of moment matrices for semidefinite programming (SDP) hierarchies. The user declares operator labels together with a small set of structural relations, and MoMPy returns a matrix of SDP variable indices in which every implied identification has already been made, ready for CVXPY or any other modelling layer. Internally, the identification problem is recast as a word-rewriting problem on tuples of integers and solved with a memoised breadth-first closure coupled to a disjoint-set forest, so that each distinct monomial is processed exactly once per build, however many matrix entries it eventually labels. The central abstraction is independent of the physical scenario: the same construction handles tracial, state (NPA), and block-valued moments, with no notion of parties, settings or preparations. We demonstrate this generality on a tripartite Mermin inequality, the bipartite CHSH inequality, measurement compatibility in a steering scenario, state discrimination and dimension witnessing in prepare-and-measure scenarios, device-independent randomness certification, and certification of deterministic correlations from known ensembles. The construction is validated against an independent brute-force implementation and benchmarked across eight structurally distinct scenarios, spanning bipartite and tripartite Bell tests, heterogeneous-outcome, steering-type, jointly-measurable and network configurations.

View source

Similar papers

Preprint Oct 2026

A faster matrix multiplication algorithm through structured optimization

We present a new asymptotic matrix multiplication construction yielding $\omega<2.37115924$, and therefore an algorithm that multiplies two $n\times n$ matrices in $O(n^{2.37115924})$ arithmetic operations over the rationals, reals, or complex numbers. The construction improves the bound $2.371177$ of Dupont et al. wit...

R. Zadeh · 0 citations
Preprint Oct 2026

Exact minimum Birkhoff decompositions of doubly stochastic matrices with finite precision

The minimum Birkhoff decomposition problem asks for a representation of a doubly stochastic matrix as a convex combination of as few permutation matrices as possible. This NP-hard problem arises in the scheduling of switches in data centers and satellite systems, in random assignments in economics and in the statistics...

Andr'as Cz'egel · 0 citations
Preprint Sep 2026

Squaring Up by Selection: NP-Completeness at Three Simple Roots

To solve an overdetermined polynomial system numerically, one first makes it square, usually by replacing the given equations with as many random linear combinations as there are unknowns. This is a provably safe step, but it can substantially enlarge the supports. The alternative is to keep that many of the given equa...

Oren Bassik · 0 citations
Preprint Oct 2026

Recursive Multilevel Decomposition of Pairwise Comparison Matrices: Algorithms and Inconsistency Diagnostics

Positive reciprocal pairwise comparison matrices are studied in entrywise logarithmic coordinates. Starting from the established consistent-residual split, we show that, for any fixed ordering, the residual matrix admits a unique top-down decomposition into mutually Frobenius-orthogonal layers. The construction applies...

M. Çarboǧa, W. W. Koczkodaj, Y. Yaylı · 0 citations
Preprint Oct 2026

Subgraph Isomorphism, Integer Linear Programming, and Lattices: A Linear Algebraic Framework

The subgraph isomorphism problem (SGI) asks a deceptively simple question: is a graph B found inside a parent graph A? Famously NP-complete and the subject of volumes of study, attempts to practically solve subgraph problems typically require specialized software or the focused application of problem-specific theoretic...

Bryant Gipson · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.