g-qpca

Quantum Principal Component Analysis (QPCA) as a generative model

https://github.com/haimengzhao/g-qpca

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
    Links to: iop.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.2%) to scientific vocabulary

Keywords

quantum-algorithms quantum-computing quantum-machine-learning
Last synced: 6 months ago · JSON representation ·

Repository

Quantum Principal Component Analysis (QPCA) as a generative model

Basic Info
  • Host: GitHub
  • Owner: haimengzhao
  • Language: Jupyter Notebook
  • Default Branch: main
  • Homepage:
  • Size: 2.04 MB
Statistics
  • Stars: 12
  • Watchers: 1
  • Forks: 3
  • Open Issues: 0
  • Releases: 1
Topics
quantum-algorithms quantum-computing quantum-machine-learning
Created about 4 years ago · Last pushed almost 4 years ago
Metadata Files
Readme Citation

README.md

Generative Quantum Principal Component Analysis

Haimeng Zhao and Weixiao Sun

Declaration

This is a course project for Quantum Artificial Intelligence course given by Prof. Dongling Deng at Tsinghua University in 2021 Fall.

The repository contains code for implementing a quantum generative model with quantum principal component analysis via PennyLane and TensorFlow. A detailed document can be found under the name paper.pdf.

However, it turns out that this work is covered by an existing work from a different perspective which we were not aware of.

We open source the code anyway, hoping it might help others in their implementation of works in quantum generative learning. Note that the paper is not peer reviewed and we do not guarantee the correctness. If you find this repository useful, please cite us using the citation button in the right column provided by GitHub.

Abstract

Generative learning is a major branch of machine learning which has yielded significant applications in a wide range of areas. Quantum generative learning utilizes the power of quantum computers to learn and generate quantum data, demonstrating potential supremacy over its classical counterpart. Here, we propose a simple yet powerful generative model based on variational quantum principal component analysis (G-qPCA), which extracts the leading eigenvalues and corresponding eigenvectors of a given quantum state via a parameterized quantum circuit, and generates data by preparing the state accordingly. Recognizing the linearity of quantum mechanics and optimality of qPCA in state discrimination, we further discover that three mainstream generative models in the classical literature can be unified in the quantum regime and reduced to our algorithm. Along the way, we propose a fully quantum formulation of variational autoencoder and introduce the quantum version of normalizing flow. Our algorithm is demonstrated with numerical simulations and experimentally implementable on noisy intermediate-scale quantum devices, while free from the use of quantum random access memory which is a caveat in most quantum machine learning algorithms.

Owner

  • Name: Haimeng Zhao
  • Login: haimengzhao
  • Kind: user
  • Location: Beijing & Shanghai, China
  • Company: Tsinghua University

Undergraduate interested in Quantum Info and AI+Physics

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: >-
  A Generative Model Based on Variational Quantum
  Principal Component Analysis
message: >-
  If you find this repository useful, please cite it
  using the metadata from this file.
type: software
authors:
  - given-names: Haimeng
    family-names: Zhao
    email: haimengzhao@icloud.com
    affiliation: Tsinghua University
    orcid: 'https://orcid.org/0000-0001-6675-1489'
  - given-names: Weixiao
    family-names: Sun
    email: sunwx21@mails.tsinghua.edu.cn
    affiliation: Tsinghua University
url: "https://github.com/JasonZHM/g-qpca"
doi: 10.5281/zenodo.6415160
date-released: 2022-04-05

GitHub Events

Total
  • Watch event: 3
  • Fork event: 1
Last Year
  • Watch event: 3
  • Fork event: 1