Federated learning enables decentralized, privacy-preserving training but remains vulnerable to privacy leakage in the quantum era. Quantum federated learning (QFL) offers a promising path toward enhanced security and efficiency. However, a practical and experimentally validated QFL protocol utilizing near-term quantum techniques to address data privacy has been lacking. Here, we present QuNetQFL, a QFL protocol implemented on quantum networks, in which local model updates are masked with distributed quantum secret keys, offering information-theoretic security during aggregation. We experimentally validate the protocol on a 4-client quantum network and benchmark its performance using the generated keys on quantum and real-world datasets. Adding a single quantum client substantially improves global accuracy for classifying multipartite entangled and nonstabilizer quantum datasets. For language tasks, we apply QuNetQFL to sentiment analysis by federated fine-tuning of a hybrid classical-quantum language model, achieving comparable and robust performance in simulation and on real quantum hardware. Large-scale simulations further demonstrate scalability to 200 clients for handwritten-digit recognition, with rapid convergence and a 75% reduction in communication cost via model compression. Our work establishes a practical and scalable route to quantum-secure federated learning for the emerging quantum internet.
for Each client pairs in do
1) Randomly choose basis ( or ) and prepare corresponding weak coherent states , where is the pulse intensity. | |
2) Send the states to an untrusted node, Eve, for measurement. | |
3) Decide whether to flip the bit according to the measurement outcome. | |
4) Estimate bit error rate by clients’ announcements. | |
5) Perform postprocessing steps (error correction and privacy amplification) to generate enough final secure keys. |
end for
Note: Secret keys used in QuNetQFL can be generated during training or pre-generated to the overall process time. MDI-QKD reduces the minimal quantum resources required for client participation, and QuNetQFL is flexible to emerging QKD techniques.
| 1. | Alice and Bob choose the basis with the probability and the basis with the probability (). For the basis, they prepare where is the logic bit value () and is the pulse intensity. For the basis, they prepare where is the logic bit value (). |
| 2. | Eve performs measurements on the pulses with a 50:50 BS and 2 single-photon detectors and records the detection results. One and only one detector clicks is defined as an effective event. |
| 3. | The above steps are repeated many times to accumulate sufficient data. Eve announces all effective events and the corresponding detector that clicks. For each effective event announced by Eve, if D2 clicks, Bob flips his corresponding logic bit. Alice and Charlie retain only the logical bits from effective measurements, discarding others. Then they disclose their basis choices for effective events through authenticated classical channels. |
| 4. | Alice and Bob announce all their bit values in the basis to calculate the quantum bit error rate in the basis to estimate the phase error rate under the basis , and the number of counts and can also be obtained under and bases, respectively. |
| 科 Family | 属数 Number of genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) | 属 Genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) |
|---|---|---|---|---|---|---|
| 鹅膏菌科Amanitaceae | 2 | 11 | 5.26 | 鹅膏菌属 Amanita | 10 | 4.78 |
| 小菇科 Mycenaceae | 2 | 12 | 5.74 | 丝盖伞属 Inocybe | 5 | 2.39 |
| 多孔菌科 Polyporaceae | 8 | 14 | 6.70 | 蜡蘑属 Laccaria | 5 | 2.39 |
| 红菇科 Russulaceae | 3 | 23 | 11.00 | 小皮伞属 Marasmius | 6 | 2.87 |
| 小菇属 Mycena | 11 | 5.26 | ||||
| 光柄菇属 Pluteus | 5 | 2.39 | ||||
| 红菇属 Russula | 17 | 8.13 | ||||
| 栓菌属 Trametes | 5 | 2.39 |