Quantum Federated Learning with Quantum Data

Mahdi Chehimi, Walid Saad

TL;DR

This paper introduces the first fully quantum federated learning (QFL) framework designed to train models on purely quantum data without ever needing to transmit fragile qubits across a network. By combining Google’s TensorFlow Quantum and TensorFlow Federated, the researchers demonstrate that we can train Quantum Convolutional Neural Networks (QCNNs) across distributed clients using classical wireless infrastructure (like 5G) to exchange model parameters rather than the quantum states themselves.

What Problem Does This Paper Address?

Quantum Machine Learning (QML) shows immense promise for solving complex problems, but it faces a massive bottleneck: data fragility. Quantum data (qubits) is incredibly sensitive to "decoherence"—it decays quickly when interacting with the environment. This makes transferring quantum data over long distances for centralized processing extremely difficult and error-prone.

Furthermore, most existing QML models are centralized, which doesn't scale for the envisioned "Quantum Internet" or distributed quantum sensor networks. The authors tackle this by asking: Can we perform collaborative learning on quantum data while keeping that data local and only communicating via classical channels?

Methods

The authors propose a decentralized architecture that mirrors classical Federated Learning but operates in a quantum environment:

  1. Local QCNNs: Each client runs a Quantum Convolutional Neural Network. This architecture uses "quasi-local unitaries" for convolution (to find patterns) and measurement-based pooling (to reduce the system size/dimensionality).
  2. Parameter Exchange: Instead of sending qubits, clients send their "learnable quantum circuit parameters"—which are classical values—to a central server.
  3. Federated Averaging (FedAvg): The server aggregates these classical parameters from all clients, averages them, and sends the updated global model back to the clients.
  4. Hybrid Software Stack: The implementation is a technical milestone, being the first to integrate TensorFlow Quantum (TFQ) for quantum circuit simulation with TensorFlow Federated (TFF) for the decentralized orchestration.

Datasets

Because no standard benchmarks existed for this specific task, the authors generated a novel quantum federated dataset:

  • Data Type: 8-qubit quantum cluster states (often used in quantum computing and sensing).
  • Task: Binary classification to determine if a cluster state is "excited" based on qubit rotations.
  • Structure: A hierarchical HDF5 format containing data for 30 clients, with 160 samples per client.
  • Distribution: They created both IID (Independent and Identically Distributed) and non-IID versions (using truncated normal distributions for rotations) to test the model's robustness against real-world data variety.

Key Insights and Ideas

  • Classical Channels for Quantum Gains: The most significant insight is that classical federated learning algorithms (like FedAvg) are perfectly capable of serializing and learning quantum circuit parameters. We don't need a "Quantum Internet" to train distributed quantum models; 5G is enough.
  • The Power of Collaboration: The researchers found that the federated model often outperformed a centralized model trained on a single client's data. This suggests that "data diversity"—learning from the unique local distributions of many clients—helps the quantum model generalize better.
  • Robustness to Non-IID Data: Quantum data in the real world won't be uniform. The framework proved it could handle non-IID data with only a negligible drop in accuracy (from ~99.2% to ~98.6%).

Key Results

  • High Accuracy: The QFL framework achieved nearly 99% testing accuracy when scaled to 30 clients.
  • Scalability: Accuracy improved as the number of clients increased, proving that the system benefits from a larger network.
  • Efficiency: Using the Adam optimizer with a learning rate of 0.02, the model converged to high accuracy within just a few training epochs.
  • Stability: Extensive testing with different random seeds showed that the error bars for both training and testing remained below 5%, indicating a stable and reliable learning process.

Limitations and Future Work

  • NISQ Constraints: The study was conducted in a simulation environment. Real-world "Noisy Intermediate-Scale Quantum" (NISQ) hardware suffers from physical gate errors and decoherence that might impact these results.
  • Device Heterogeneity: The paper assumes clients have similar quantum capabilities. Future work needs to address how to federate learning across a "mixed" network of high-end quantum computers and low-power quantum sensors.
  • Security: While the data stays local, the parameters are sent classically. The authors suggest that future iterations should incorporate Quantum Key Distribution (QKD) or quantum cryptography to protect the model parameters during transit.
  • 6G Integration: The authors envision this framework becoming a core component of future 6G networks, where quantum sensors and classical AI work in tandem.

Summary updated

BibTeX
@inproceedings{chehimi2022quantum,
  author = {Mahdi Chehimi and Walid Saad},
  title = {{Quantum Federated Learning with Quantum Data}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2022},
  url = {https://openreview.net/forum?id=2nBaWtxtYJr},
}
Figure