Hybrid quantum-classical neural networks for 2D and 3D image processing
Project description
Ingenii Quantum Hybrid Networks
Version: 0.3.1
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
This quantum-inspired filter is especially useful to highlight regions with varying contrast and identify regions of interest. This transformation essentially adjusts the pixel intensity of the image based on its local contrast and overall neighborhood contribution, which enhances segmentation by emphasizing the boundaries and transitions in the image.
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
Built Distribution
File details
Details for the file ingenii_quantum_hybrid_networks-0.3.1.tar.gz
.
File metadata
- Download URL: ingenii_quantum_hybrid_networks-0.3.1.tar.gz
- Upload date:
- Size: 9.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14fd498bc9e0594653bdd21ea214a560e394fd37f2f3237dda19bdee215e4a3e |
|
MD5 | 6cc4d55b53ee8f02c7286a4d7f7e95d1 |
|
BLAKE2b-256 | 81b6733f716d0f40a37d234e1d1064a9b2906bee672c8183bff5a7a74993a25b |
File details
Details for the file ingenii_quantum_hybrid_networks-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: ingenii_quantum_hybrid_networks-0.3.1-py3-none-any.whl
- Upload date:
- Size: 9.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbabcfd5d025524fed745bf0da41baf78f2941428a7514165414ec74dfbcccbb |
|
MD5 | 78e4b567d59df1488bb89f83bbf67f67 |
|
BLAKE2b-256 | 6eb0489a42f49fbce3453a54447506ca8c9cf1687b2e08876136a2bd838c3283 |