Quantum superposition inspired spiking neural network

This repository contains code from our paper [Quantum superposition inspired spiking neural network] published in iScience. https://doi.org/10.1016/j.isci.2021.102880. If you use our code or refer to this project, please cite this paper.

Requirments

  • numpy

  • scipy

  • pytorch >= 1.7.0

  • torchvision

Data preparation

First modify the DATA_DIR='path/to/datasets in examples/QSNN/main.py to the root directory of your MNIST datasets.

Train

python ./main.py