Distributed Quantum Computing with QMPI

Thomas Häner, Damian S. Steiger, Torsten Hoefler, Matthias Troyer · DOI · OpenReview

Researchers from Microsoft and ETH Zürich have introduced QMPI, the first high-performance communication interface for distributed quantum computing, alongside SENDQ, a performance model to help developers optimize their code. By extending the classical Message Passing Interface (MPI) to the quantum realm, this work provides the necessary software "glue" to connect multiple small quantum processors into a single, massive computational engine.

The Scaling Challenge

We are currently in the "NISQ" (Noisy Intermediate-Scale Quantum) era. However, the most transformative applications of quantum computing—such as cracking RSA encryption or simulating complex catalysts for green energy—require millions of physical qubits. Building a single chip with millions of qubits is a monumental engineering challenge due to cooling requirements and wiring complexity.

The industry is moving toward a distributed architecture, where multiple smaller quantum chips are connected via a coherent quantum network. However, a standardized way for these chips to communicate has been missing. In the classical world, MPI is used to run simulations across thousands of CPUs; QMPI aims to bring that same standardization to the quantum world.

Methods: QMPI and the SENDQ Model

The authors propose two major contributions to the field:

  1. Quantum MPI (QMPI): This is an extension of the classical MPI standard. It allows programmers to use familiar commands like Send, Recv, Bcast (broadcast), and Reduce for quantum data. It supports two primary types of communication:
  2. Move Semantics: Using quantum teleportation to physically move a qubit's state from Node A to Node B.
  3. Copy (Entangled) Semantics: Creating an "entangled copy" (fanout) where the value of a qubit is exposed to multiple nodes simultaneously without destroying the original state.
Distributed communication protocol showing Fanout and Unfanout operations between two nodes using entanglement and classical messaging.
  1. The SENDQ Model: Inspired by the classical "LogP" model, SENDQ provides a mathematical framework to predict performance. It uses five parameters: S (buffer qubits for EPR pairs), E (time to establish an EPR pair), N (number of nodes), D (local computation delay), and Q (local qubits per node).

Key Insights and Optimization

Distributed quantum computing shifts the primary bottleneck from gate counts to communication costs—specifically the time and qubits needed to generate EPR pairs (entangled links) between nodes.

One of the most significant findings is the power of double buffering. Having just two qubits dedicated to buffering EPR pairs ($S \ge 2$) allows a node to prepare the next communication link while the current one is in use, significantly reducing total runtime.

Furthermore, the paper demonstrates that entanglement allows for constant-depth broadcast. A quantum state can be "broadcast" to $N$ nodes in constant quantum time, regardless of the number of nodes. This is a feat impossible in classical computing, where broadcasting usually scales logarithmically.

Circuit transformation demonstrating how sequential controlled operations can be parallelized to achieve constant-depth execution using an auxiliary qubit.

Results and Validation

The authors evaluated their framework using two benchmark quantum problems: the Transverse-field Ising Model (TFIM) and a 64-qubit Hydrogen Ring chemistry simulation.

  • Prototype Implementation: A functional C++ prototype of QMPI was built to run on top of a full-state quantum simulator, enabling developers to debug distributed algorithms today.
  • SENDQ Validation: For a 32-atom hydrogen ring, the model showed that the number of EPR pairs required for a single simulation step can reach into the tens of millions, highlighting the urgent need for high-bandwidth quantum interconnects.
  • Encoding Efficiency: The research found that while Bravyi-Kitaev encoding is often preferred for efficiency, it may require more complex distributed structures than the simpler Jordan-Wigner approach in a multi-node environment.

Limitations and Future Work

While QMPI and SENDQ mark a major step forward, challenges remain. The current SENDQ model assumes a "complete" network where any node can talk to any other node, ignoring the specific physical topologies (like grids or rings) of early hardware. Additionally, because quantum computing must be reversible, "Reduction" operations require careful memory management to "uncompute" intermediate results. Future work will focus on automating these processes and integrating classical latency into the performance models.

Summary updated

BibTeX
@inproceedings{haner2021distributed,
  author = {Thomas Häner and Damian S. Steiger and Torsten Hoefler and Matthias Troyer},
  title = {{Distributed Quantum Computing with QMPI}},
  booktitle = {SC},
  year = {2021},
  doi = {10.1145/3458817.3476172},
}
Figure