Git Product home page Git Product logo

wheelqnet's Introduction

WheelQNet: Quantum Binary Classification via Rotation Averaging

Official implementaion of WheelQNet, yet another toyish quantum binary classifier implemented in pyVQNet

This repo contains code for the contest: 第一届量子信息技术与应用创新大赛 -- 本源量子VQNet量子机器学习大赛赛道
Contest page: https://contest.originqc.com.cn/contest/32/contest:introduction
Team Name: 做好坠机准备
Final Score: 84.6 (the 1st prize 😀)

wheelq

Model Param cnt. Train acc. Test acc.
HEA 32 78.608% 82.178%
CCQC 52 79.494% 81.188%
CCQC-q 52 80.253% 78.218%
WheelQ 32 77.342% 79.208%
kNN-q - 81.392% 87.129%

⚠ only CCQC has 1 classical parameter, and kNN-q is non-parametrical, the other models are all pure quantum parametricalized :) ℹ the proposed WheelQNet looks 花里胡哨 though, it just works!! 🎉 ℹ the proposed kNN-q looks good, but it may be our fortune 😂

Quickstart

⚪ install

  • conda create -n vq python==3.8
  • conda activare vq
  • pip install -r requirements.txt

⚪ run

  • python -m src.preprocess -f, make feature data
  • python -m src.eval -L log\<model>, get testset predictions
    • python -m src.eval for the default model (knnq)
  • run_vqnet.cmd, train on your own to reproduce the submission

⚪ development

  • pip install -r requirements_dev.txt
  • python preprocess.py -f
  • python run_sklearn.py for classical comparations
  • python run_vqnet.py -M <model> to train
    • see exmaples in run_vqnet*.cmd
  • python run_vqnet.py -L <logdir> to eval

refenrence

⚪ Q framework & method

⚪ problem & data

Citation

If you find this work useful, please give a star ⭐ and cite~ 😃

@misc{kahsolt2023,
  author = {Kahsolt},
  title  = {WheelQNet: Quantum Binary Classification via Rotation Averaging},
  howpublished = {\url{https://github.com/Kahsolt/WheelQNet}}
  month  = {December},
  year   = {2023}
}

by Armit 2023/10/27

wheelqnet's People

Contributors

kahsolt avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

yfshiro

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.