EQC: ensembled quantum computing for variational quantum algorithms

Samuel Alexander Stein, Nathan Wiebe, Yufei Ding, Bo Peng, Karol Kowalski, Nathan A. Baker, James Andrew Ang, Ang LiISCA 2021 · OpenReview

TL;DR

This paper introduces EQC, a novel framework for variational quantum algorithms (VQAs) that leverages an ensemble of quantum processing units (QPUs) to mitigate noise and accelerate training. By dynamically weighting and distributing tasks across multiple QPUs, EQC achieves significant speedups and improved accuracy compared to single-QPU approaches, making VQAs more practical for current noisy quantum hardware.

What Problem Does This Paper Address?

Variational Quantum Algorithms (VQAs) are a promising avenue for harnessing the power of noisy intermediate-scale quantum (NISQ) devices. However, deploying VQAs on these machines faces significant hurdles:

  • Device-Specific Noise and Bias: NISQ QPUs are inherently noisy, with errors stemming from coherence decay, imperfect gate operations, and state preparation/measurement issues. This noise is not uniform; each QPU has a unique "noise profile" that can change over time due to calibration drift. This leads to device-specific biases in computations, making it difficult to obtain reliable results.
  • Prohibitively Long Training Times: VQA training involves iterative circuit evaluations and parameter updates. Access to QPUs is often through cloud services with waiting queues, and the inherent slowness of quantum operations, combined with the need for many repetitions, results in extremely long training durations.
  • Underutilization and Workload Imbalance: Despite the high cost of quantum hardware, QPUs can be underutilized. Users tend to favor the "best" performing machines, leading to congestion on some and idle time on others. This imbalance is exacerbated by the iterative nature of VQA training.

The paper aims to address these challenges by proposing a system that intelligently utilizes multiple QPUs to create a more robust, faster, and efficient VQA training environment.

Methods

The core of the paper is the EQC (Ensembled Quantum Computing) framework, which introduces several key innovations:

  • Quantum Ensemble: Instead of relying on a single QPU, EQC creates a virtualized backend by pooling multiple QPUs. This ensemble approach helps to average out device-specific noise and bias.
  • Asynchronous Parallel VQA Training: EQC employs a master-client architecture. The master node manages global parameters and the circuit template, while client nodes, each paired with a specific QPU, perform derivative calculations asynchronously. This allows for parallel execution of tasks, significantly speeding up training.
  • Analytic Model for QPU Quality Assessment: EQC incorporates a model to assess the quality of a QPU's returned gradient. This model considers factors like circuit depth, gate fidelities, measurement errors, and importantly, topological constraints (which can introduce extra SWAP gates and thus more errors).
  • Adaptive Weighting Mechanism: Based on the QPU quality assessment, EQC assigns weights to the gradients computed by each client node. This allows the system to dynamically adjust the contribution of each QPU to the overall gradient update, trusting QPUs that are performing better (e.g., recently calibrated or less noisy) more than those that are not. This weighting is linearly scaled to a predefined range (e.g., [0.5, 1.5]).
  • Task Decomposition: The paper details how VQA tasks (specifically for VQE and QAOA) are decomposed into smaller, parallelizable sub-tasks that can be distributed across the ensemble.

Datasets

The paper does not introduce new datasets for training. Instead, it uses established VQA problems for evaluation:

  • 4-Qubit Heisenberg Model Hamiltonian: Used for Variational Quantum Eigensolver (VQE) evaluation. This is a standard problem in quantum magnetism.
  • 4-Node MaxCut Problem: Used for Quantum Approximate Optimization Algorithm (QAOA) evaluation. This is a common benchmark for combinatorial optimization problems.

The evaluations are performed on 10 different IBM Quantum Experience (IBMQ) devices, providing a diverse set of hardware characteristics (topology, noise profiles, calibration status) to test the EQC framework.

Key Insights and Ideas

  • Ensembling as a Noise Mitigation Strategy: The most significant insight is that by treating multiple noisy QPUs as an ensemble and intelligently weighting their contributions, the system can effectively average out individual device biases and achieve more reliable results than any single device alone.
  • Real-time Adaptive Weighting is Crucial: The dynamic weighting mechanism, which adapts based on real-time QPU performance and calibration status, is key to EQC's success. This allows the system to gracefully handle time-dependent noise drift and fluctuating QPU performance.
  • Topology-Awareness Improves Accuracy: Explicitly accounting for QPU topology and its impact on circuit transpilation (e.g., the cost of SWAP gates) in the weighting model leads to better accuracy. This is because topological constraints can introduce significant errors.
  • Speedup Through Parallelism and Load Balancing: The asynchronous, master-client architecture, combined with adaptive weighting, not only mitigates noise but also dramatically speeds up training by efficiently utilizing available QPUs and balancing workloads.

Key Results

EQC demonstrates significant improvements over single-machine VQA training:

  • Speedup: EQC achieves an average training speedup of 10.5x (up to 86x) compared to single IBMQ devices. For QAOA, EQC is 135,510.2% faster than the slowest IBMQ machine and 322.4% faster than the fastest.
  • Accuracy: EQC attains error rates very close to the most performant device in the ensemble. For VQE, EQC achieved an error rate of 0.379%, significantly better than individual machines like IBMQ x2 (1.798%), Bogota (0.865%), and Casablanca (4.6%).
  • Noise Mitigation: The ensemble approach effectively dampens device-specific noise and bias. For example, it mitigates the issue of machines like IBMQ Casablanca becoming unstable after initial convergence.
  • Improved Convergence: With adaptive weighting, EQC can achieve faster convergence. For VQE, a weighting range of [0.25, 1.75] showed a 75% speedup in convergence compared to no weighting.

Limitations and Future Work

  • Assumptions for Convergence Proof: The convergence proof relies on several assumptions, including the differentiability of the loss function, the use of the parameter shift rule for gradient estimation, and the boundedness of gradients. While these are standard in VQA literature, their strict adherence in practice can be challenging.
  • Weighting Range Optimization: The paper notes that increasing the weighting range (e.g., to [0.25, 1.75]) can lead to faster convergence but also potentially larger step sizes that might cause issues with converging to local minima. Further research could explore optimal weighting ranges.
  • Integration with Other QC Frameworks: The paper mentions that EQC is implemented using Qiskit and Ray.io. Future work could explore integrating EQC with other quantum computing frameworks or hardware providers.
  • Broader Applicability: While demonstrated for VQE and QAOA, the EQC framework's applicability to other VQA variants and quantum algorithms could be further explored.
  • Hardware Heterogeneity: The framework supports heterogeneous QPUs, but further investigation into optimal strategies for managing ensembles with vastly different performance characteristics would be beneficial.

Summary updated

BibTeX
@inproceedings{stein2021eqc,
  author = {Samuel Alexander Stein and Nathan Wiebe and Yufei Ding and Bo Peng and Karol Kowalski and Nathan A. Baker and James Andrew Ang and Ang Li},
  title = {{EQC: ensembled quantum computing for variational quantum algorithms}},
  booktitle = {ISCA},
  year = {2021},
  url = {https://openreview.net/forum?id=eididK5t9g},
}
Figure