Skip to main content

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

Project description

Ingenii Quantum Hybrid Networks

Version: 0.3.0

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

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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for ingenii_quantum_hybrid_networks-0.3.0.tar.gz
Algorithm Hash digest
SHA256 3f828e5cdc69019bb396ffc968a52aacc2c12bebbeaeb32db9148f2c9114bcdf
MD5 5009a706e8608883ba47af52ec22f487
BLAKE2b-256 754151fc32202bc7c3ff4fcd4af8dd2e01b71e0e7a81aa175a83840b08b90d38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ingenii_quantum_hybrid_networks-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c07e0e1779bc7e33ae1a4ed6d756c2952772c036787b796ba8b2ea7a84dc2a04
MD5 4bb132611702c673f525da66e669886c
BLAKE2b-256 41d04eac166342763059d876989419dcc2f0b740545ac72a96f4b2b196e5faf6

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