Skip to main content

Quantum Neural Networks (QNN) framework for quantum-enhanced machine learning.

Project description

QNN: Quantum Neural Networks Framework

License Python PennyLane Torch

Overview

This folder contains the code for Quantum Neural Networks (QNN) based on the Continuous Variable (CV) model of Quantum Computing implemented using Quantum Optics.

Quantum computing is a method of computation that utilizes physical mediums operating based on the principles of quantum mechanics. There are two types of quantum computing:

  • Discrete Variable (DV) Quantum Computing: quantizing digital computing based on the binary logic. The basis states are |0> and |1>.
  • Continuous Variable Quantum Computing: using the continuous properties of nature. The basis states are |0>, |1>, ..., |n>

The difference between DV quantum computing and CV quantum computing is stated in this paper: Quantum computing overview.

The actual implementation of CV quantum computing was realized by Xanadu in 2020 using quantum optics. The architecture of the Photonic CV chip implemented by Xanadu can be found in this paper.

CV Quantum Neural Networks (QNNs) is a framework for quantum-enhanced machine learning, designed to integrate quantum computing with classical deep learning models. Photonic QNN faithfully implements classical neural networks due to optical gates capable of representing bias addition and nonlinear activation function. This framework provides modular components for building, training, and deploying hybrid quantum-classical neural networks.


Key Features

  • 🧠 Quantum Model: Leverages quantum circuits for feature encoding and QNN layer processing.
  • 🔥 PyTorch & PennyLane Integration: Seamlessly works with PyTorch for training and PennyLane for quantum circuit simulations.
  • Custom Quantum Layers: Provides pre-built layers like Quantum Variational Circuits and Quantum Convolutional Networks.
  • 📡 Supports Multiple Quantum Devices: Compatible with simulators and real quantum hardware (Xanadu's X8) via Pennylane.

Setup Instructions

Prerequisites

Ensure you have the following installed:

  • Python 3.10+
  • Required Python packages (listed in requirements.txt)

Installation

  1. Clone the repository:
    git clone https://github.com/qaintumai/qaintum-ai/qnn-container.git
    cd quantum
    
  2. Create and activate a virtual environment:
    python3 -m venv venv
    source venv/bin/activate
    
  3. Install the required packages:
    pip install -r requirements.txt
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qaintum_qnn-0.1.1.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qaintum_qnn-0.1.1-py3-none-any.whl (40.2 kB view details)

Uploaded Python 3

File details

Details for the file qaintum_qnn-0.1.1.tar.gz.

File metadata

  • Download URL: qaintum_qnn-0.1.1.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.3

File hashes

Hashes for qaintum_qnn-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8bc592da0f85709fac0c4b8dfb443ac69c5568f7bc81b5c7c9739fd52c157077
MD5 cb48e9dffc8422f00940f1d37fb53129
BLAKE2b-256 8eb73155d1066b5a1f5c1a247ed739a0d0d01db4d7a1cd2a924bd9932b1fc8c2

See more details on using hashes here.

File details

Details for the file qaintum_qnn-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: qaintum_qnn-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 40.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.3

File hashes

Hashes for qaintum_qnn-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cbfefc8ea5bd934c8d12081fe5b641d8bc247981512e81c6c3e861f89507d9e4
MD5 52659e70c4f22334b8ae08a04374edf6
BLAKE2b-256 4c3ce575ed7d3751772c4a661e2dad291a351bd1cf60931ed644736e7caf43df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page