Coder Social home page Coder Social logo

vita-group / quantumsea Goto Github PK

View Code? Open in Web Editor NEW
2.0 11.0 0.0 209 KB

[QCE 2023]"QuantumSEA: In-Time Sparse Exploration for Noise Adaptive Quantum Circuits" Tianlong Chen, Zhenyu Zhang, Hanrui Wang, Jiaqi Gu, Zirui Li, David Z Pan, Frederic T Chong, Song Han, Zhangyang Wang

License: MIT License

Python 99.27% Shell 0.73%
quantum-chemistry quantum-computing sparsity vqe

quantumsea's Introduction

QuantumSEA: In-Time Sparse Exploration for Noise Adaptive Quantum Circuits

License: MIT

Codes for this paper QuantumSEA: In-Time Sparse Exploration for Noise Adaptive Quantum Circuits [QCE 2023]

Overview

Parameterized Quantum Circuits (PQC) have obtained increasing popularity thanks to their great potential for near-term Noisy Intermediate-Scale Quantum (NISQ) computers. Achieving quantum advantages usually requires a large number of qubits and quantum circuits with enough capacity. However, limited coherence time and massive quantum noises severely constrain the size of quantum circuits that can be executed reliably on real machines. To address these two pain points, we propose QuantumSEA, an in-time sparse exploration for noise-adaptive quantum circuits, aiming to achieve two key objectives: (1) implicit circuits capacity during training - by dynamically exploring the circuit’s sparse connectivity and sticking a fixed small number of quantum gates throughout the training which satisfies the coherence time and enjoy light noises, enabling feasible executions on real quantum devices; (2) noise robustness - by jointly optimizing the topology and parameters of quantum circuits under real device noise models. In each update step of sparsity, we leverage the moving average of historical gradients to grow necessary gates and utilize salience-based pruning to eliminate insignificant gates. Extensive experiments are conducted with 7 Quantum Machine Learning (QML) and Variational Quantum Eigensolver (VQE) benchmarks on 6 simulated or real quantum computers, where QuantumSEA consistently surpasses noise-aware search, humandesigned, and randomly generated quantum circuit baselines by a clear performance margin. For example, even in the most challenging on-chip training regime, our method establishes stateof-the-art results with only half the number of quantum gates and ∼ 2× time saving of circuit executions.

Prerequisites

git clone https://github.com/mit-han-lab/torchquantum.git
cd torchquantum
pip install --editable .
python fix_qiskit_parameterization.py

Usage

# F-MNIST2, ibmq_quito, RXYZ circuit
bash script/fmnist2/Dense.sh # Dense
bash script/fmnist2/Human.sh # Human Design 50% gates
bash script/fmnist2/Random.sh # Random Design 50% gates
bash script/fmnist2/SEA.sh # Our methods 50% gates

# MNIST2, ibmq_quito, RXYZ circuit
bash script/mnist2/Dense.sh # Dense
bash script/mnist2/Human.sh # Human Design 50% gates
bash script/mnist2/Random.sh # Random Design 50% gates
bash script/mnist2/SEA.sh # Our methods 50% gates

Acknowledgement

This repo is based on https://github.com/mit-han-lab/torchquantum

Citation

@article{chenquantumsea,
  title={QuantumSEA: In-Time Sparse Exploration for Noise Adaptive Quantum Circuits},
  author={Chen, Tianlong and Zhang, Zhenyu and Wang, Hanrui and Gu, Jiaqi and Li, Zirui and Pan, David Z and Chong, Frederic T and Han, Song and Wang, Zhangyang}
}

quantumsea's People

Contributors

kyriection avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.