Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/albertnieto/quantum-perceptron
Quantum perceptron using Grover, implemented with Pennylane.
https://github.com/albertnieto/quantum-perceptron
perceptron quantum-computing quantum-machine-learning
Last synced: about 1 month ago
JSON representation
Quantum perceptron using Grover, implemented with Pennylane.
- Host: GitHub
- URL: https://github.com/albertnieto/quantum-perceptron
- Owner: albertnieto
- License: apache-2.0
- Created: 2024-10-11T13:28:32.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-11T15:26:18.000Z (4 months ago)
- Last Synced: 2024-11-06T19:36:56.347Z (3 months ago)
- Topics: perceptron, quantum-computing, quantum-machine-learning
- Language: Jupyter Notebook
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Quantum perceptron
This repository implements three different quantum perceptron models using Grover's algorithm with PennyLane. It also includes a classical perceptron for comparison. The models are designed to share common functions where applicable. Comprehensive tests are provided to ensure correctness, and a Jupyter notebook demonstrates executions, results, and comparisons.
## Repository structure
- `models/`: Contains implementations of classical and quantum perceptrons.
- `tests/`: Unit tests for each model and shared utilities.
- `notebooks/`: Jupyter notebook for executing and comparing models.
- `requirements.txt`: Dependencies required to run the code.## Setup instructions
### 1. Clone the repository
```bash
git clone https://github.com/albertnieto/quantum-perceptron.git
cd quantum_perceptron
```### 2. Create and activate a virtual environment
```bash
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
```### 3. Install dependencies
```bash
pip install -r requirements.txt
```### 4. Run tests
```bash
pytest
```### 5. Run the Jupyter notebook
```bash
jupyter notebook notebooks/quantum_perceptron_comparison.ipynb
```