Skip to main content

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

Project description

Ingenii Quantum Hybrid Networks

Version: 0.2.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.

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.2.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: ingenii_quantum_hybrid_networks-0.2.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/6.0.0 pkginfo/1.9.3 requests/2.28.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.9.16

File hashes

Hashes for ingenii_quantum_hybrid_networks-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f931297cf761d29b084944ce298e60df61cf8913a13b83bed5b78a03578f8cb4
MD5 fcf19b914f980dc89d181ad6faf94cb9
BLAKE2b-256 bb64cd58bcc8318fb20f701a2ddc57fe2757d3dc64eec85bb4c9eabe882a1e01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ingenii_quantum_hybrid_networks-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 36.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/6.0.0 pkginfo/1.9.3 requests/2.28.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.9.16

File hashes

Hashes for ingenii_quantum_hybrid_networks-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 84f0af2ac9f14af55973f3ebcd3d9d08415d8b09da93ce436ffc5c07e3b41dfb
MD5 ebd088919a78f95791c14a8253ec9153
BLAKE2b-256 adfb34458e63ad82bdcc48a919fbeac4060ea95f8b1ab7b0791e2096ba8fec7a

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