Git Product home page Git Product logo

quantum-generative-adversarial-network's Introduction

The following code is used to replicate the results of the paper:

Qugan: A generative adversarial network through quantum states, Samuel A. Stein and Betis Baheri and Daniel Chen and Ying Mao and Qiang Guan and Ang Li and Bo Fang and Shuai Xu, 2021 IEEE International Conference on Quantum Computing and Engineering (QCE).

Bibtex:

@inproceedings{stein2021qugan, title={QuGAN: A Generative Adversarial Network Through Quantum States}, author={Samuel A. Stein and Betis Baheri and Daniel Chen and Ying Mao and Qiang Guan and Ang Li and Bo Fang and Shuai Xu}, year={2021}, booktitle={2021 IEEE International Conference on Quantum Computing and Engineering (QCE)}, year={2021}, organization={IEEE} }

The code is run through an interactive Jupyter Notebook with comments.

  • Prerequisite packages include:
  • Tensorflow
  • Qiskit
  • Matplotlib
  • Numpy

quantum-generative-adversarial-network's People

Contributors

yingmao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

quantum-generative-adversarial-network's Issues

Calculation of probabilities

Hi, I would like to know why is the probabilities calculated in such a manner:
def get_probabilities(circ,counts=1000): job = execute(circ, backend, shots=counts) results = job.result().get_counts(circ) try: prob = results['0']/(results['1']+results['0']) prob = (prob-0.5) if prob <= 0.005: prob = 0.005 else: prob = prob*2 except: prob = 1 return prob
Why is there a need to minus 0.5 from the measured probabilites and then multiply it by 2?

Is there any suggestion to make this code work in current version of Qiskit 1.0 and above?

I am currently trying to regenerate the results you got from the paper and I am stuck since some of the modules got deprecated, and I tried making changes according to the migration guide but currently the code is running but not generating any result in the sense that its getting stuck in one of the for loops and cannot even finish 1 epoch in hours which I believe should not take so much time.

Any help would be useful.
Thanks!

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.