Skip to main content

Hybrid quantum-classical neural networks for 2D and 3D image processing

Project description

Ingenii Quantum Hybrid Networks

Version: 0.3.2

Package of tools to integrate hybrid quantum-classical neural networks to your machine learning algorithms. The algorithms provided in this package are implemented both in Qiskit (meant to run on real hardware and fake providers) and in Pytorch or Tensorflow (meant to run in quantum simulation with CPUs or GPUs). This package contains the following quantum algorithms:

Quantum convolutional layer (2D and 3D):

It is designed to reduce the complexity of the classical 2D/3D CNN, while maintaining its prediction performance. The hybrid CNN replaces a convolutional layer with a quantum convolutional layer. That is, each classical convolutional filter is replaced by a quantum circuit, which acts as a quantum filter. Each quantum circuit is divided into two blocks: the data encoding, which maps the input data into a quantum circuit, and the quantum transformation, where quantum operations are applied to retrieve information from the encoded data. Tha package contains an implementation for 2D data (images) and for 3D data (volumes).

Quantum fully-connected layer

It is designed to construct hybrid quantum-classical neural networks, where the quantum layer is a fully-connected layer. The quantum layer is a parametrized quantum circuit, composed of three parts: a data encoding which maps the classical data into a quantum circuit, a parametrized quantum circuit, which performs quantum operations with parameters, and measurements, which produce the output of the layer. Multiple quantum architectures are provided, which have been extracted from previous studies of hybrid neural networks. Update: To improve efficiency of the training, the codes have been rewritten using Pennylane instead of Qiskit. You can still run the algorithm in Qiskit devices by providing the suitable backend name.

Quantum fusion model

It is designed to efficiently integrate the extracted features from two classical neural network models to produce enhanced predictions. The proposed model strategically integrates 3D-CNNs and SG-CNNs to leverage their respective strengths in processing diverse facets of the training data. The simulation results presented here will demonstrate the superior performance of the quantum fusion model relative to state-of-the-art classical models.

Quantum Hadamard Edge Detection (2D and 3D):

Performs edge detection for 2D data (images) and 3D data (volumes), using quantum operations.

Quantum-inspired image filter

We introduce a quantum-inspired filter that is especially useful to highlight regions with varying contrast and identify regions of interest in medical imaging.

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

ingenii_quantum_hybrid_networks-0.3.2.tar.gz (9.3 MB view details)

Uploaded Source

Built Distribution

File details

Details for the file ingenii_quantum_hybrid_networks-0.3.2.tar.gz.

File metadata

File hashes

Hashes for ingenii_quantum_hybrid_networks-0.3.2.tar.gz
Algorithm Hash digest
SHA256 9d52517508706cdc9cab5e56753268f1adfcdd7a47d947a28f963f5c5d7b0ee3
MD5 e387fc3125d9bae3cf0100791af49725
BLAKE2b-256 3da4360de726c96f5f257eb38e2c2f8543714c29f29530e2c3846347e831a3c2

See more details on using hashes here.

File details

Details for the file ingenii_quantum_hybrid_networks-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ingenii_quantum_hybrid_networks-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 52983d97baecd37aa42103ce671a999cbccd4ea55cc4ebb9dcb9556246a56ee8
MD5 94d3ec5810ef16d02f22dc6315c1c876
BLAKE2b-256 b089b225fc05c6b6b128aa51e3716e5dd4a05ad5753b525514d4241d6a666a24

See more details on using hashes here.

Supported by

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