Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/x86-512/binvolution
A hybrid (CQ) quantum neural network with Tensorflow and Qiskit/OpenQASM. Trained on a subset of the MNIST dataset.
https://github.com/x86-512/binvolution
ai convolutional-neural-network image-recognition machine-learning mnist neural-network qiskit quantum-computing
Last synced: about 1 month ago
JSON representation
A hybrid (CQ) quantum neural network with Tensorflow and Qiskit/OpenQASM. Trained on a subset of the MNIST dataset.
- Host: GitHub
- URL: https://github.com/x86-512/binvolution
- Owner: x86-512
- Created: 2024-10-05T18:31:58.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-04T01:11:32.000Z (about 2 months ago)
- Last Synced: 2024-11-04T02:18:56.474Z (about 2 months ago)
- Topics: ai, convolutional-neural-network, image-recognition, machine-learning, mnist, neural-network, qiskit, quantum-computing
- Language: Python
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# QCNN
This is a project that is written in Qiskit to make a classical-hybrid quantum convolutional neural network trained on a subset of the MNIST dataset.
This project was my attempt to write a Classical-Hybrid Quantum (CQ) Convolutional Neural Network.The accuracy, training time, and running time are really bad (as expected) due to Barren Plateaus, unoptimized parameters, and suboptimal observables for the network.
I strongly recommend NOT running this on an actual quantum computer because the Decoherence will be TERRIBLE due to the circuit depth. Also this will suck up all your minutes(if you are on IBM's free plan).# How it works:
Encoding Layer:
Each pixel in the image is mapped to a qubit. The qubit's phase rotated by its pixel's corresponding value in the flattened tensor. I am aware that the expressibility of this is not great, but this was my attempt at recreating the ZFeatureMap circuit from Qiskit.More documentation coming soon