NetQMPI: An MPI-Inspired library for programming Distributed Quantum Applications over Quantum Networks using NetQASM SDK

Distributed Quantum Computing (DQC) is essential for scaling quantum algorithms beyond monolithic constraints, yet current software ecosystems require tedious manual orchestration of low-level physical resources. This paper presents NetQMPI, a high-level Python framework that adapts the Message Passing Interface (MPI) standard to quantum networks utilizing the Single Program Multiple Data (SPMD) paradigm. Built as a middleware over the NetQASM SDK, NetQMPI completely abstracts physical network topologies and automates resource initialization through a unified Communicator interface. We introduce semantic point-to-point primitives and novel collective operations (expose and unexpose) that safely navigate the constraints of the No-Cloning Theorem by leveraging multipartite entanglement for data distribution. Our comparative analysis demonstrates that NetQMPI effectively decouples algorithmic logic from network scale, reducing code complexity for generating an N-node GHZ state from O(N2) to a constant complexity of O(1). Furthermore, the framework is backend-agnostic, enabling immediate execution on high-fidelity physical simulators such as NetSquid (via SquidASM) and ensuring forward compatibility with future NetQASM-compliant hardware.

Palabras clave: Distributed quantum computing, High-Performance computing, Message passing interface, Quantum networks, Single Program Multiple Data (SPMD), Quantum teleportation