Skip to main content

Hybrid Quantum Models - HQM

Project description

GitHub last commit GitHub contributors GitHub issues GitHub pull requests

Hybrid Quantum Models

This library comprises a collection of functions and classes tailored to manage quantum algorithms or circuits that have the capability to interface with two of the most prevalent deep learning libraries, TensorFlow and Torch. Furthermore, the library incorporates a set of predefined hybrid models for tasks such as classification and regression.

To delve deeper into the significance of this library, let's break down its key components and functionalities. Firstly, it offers a diverse set of tools for the manipulation and execution of quantum algorithms. These algorithms harness the principles of quantum mechanics to perform operations that transcend the capacities of classical computers. The library provides an intuitive interface for fully leveraging their potential, ensuring seamless interaction with TensorFlow and Torch, two widely adopted Deep Learning frameworks.

Additionally, the library goes the extra mile by including a set of predefined hybrid models. These models are ready-made solutions for common machine learning tasks such as classification and regression. They seamlessly blend the power of quantum circuits with the traditional deep learning approach, offering developers an efficient way to address various real-world problems.

In summary, this library serves as a versatile bridge between the realms of quantum computing and Deep Learning. It equips developers with the tools to harness the capabilities of quantum algorithms while integrating them effortlessly with Tensorflow and Torch. Furthermore, the inclusion of prebuilt hybrid models simplifies the development process for tasks like classification and regression, ultimately enabling the creation of advanced AI solutions that transcend classical computing limitations.

Click here to access the documentation

!!!This library has been developed and tested mostly for QAI4EO (Quantum Artificial Intelligence for Earth Observation) tasks!!!

Installation

This package is stored on PyPi, you can easily install it using pip

pip install --upgrade hqm

Although certain elements of this library draw from PyTorch or TensorFlow, these two packages are not included in the library's prerequisites, and therefore, they will not be automatically installed. It is advisable to use the following recommended versions for PyTorch and TensorFlow:

pip install tensorflow==2.13.0
pip install torch==2.0.1

Usage

The central concept of this package is illustrated in the figure below. In essence, the package generates an embedding of a user-defined quantum circuit (chosen from the available options) into a quantum layer, which is also customizable by the user. This quantum layer can subsequently be converted into a Keras layer or a Torch layer, allowing it to be seamlessly combined with other classical or quantum layers.

A full description of each module can be found in the documentation.

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

hqm-0.0.7.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

hqm-0.0.7-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file hqm-0.0.7.tar.gz.

File metadata

  • Download URL: hqm-0.0.7.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for hqm-0.0.7.tar.gz
Algorithm Hash digest
SHA256 a359729ab31902c2a52ba77ba4faf76a7ce228bfa738704695748b425d7a75c0
MD5 0a3f8a1c7a895cf9aa76eec2d1bf4616
BLAKE2b-256 aaa2ec98382f0661240ffe44191fb9b353e641a23d60e8cf395c2ada6d450743

See more details on using hashes here.

File details

Details for the file hqm-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: hqm-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for hqm-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 54e43ebc57c1a73e2b72c8debc2ef692374e648ac570af927e2d3ff7f0339fea
MD5 16898768294a58852d6c59deff9b7afd
BLAKE2b-256 da7d6d3d8ca4373a8bf515f27d6f8d271f119b42e959a27f827fedbf977a26b0

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