A Hybrid Quantum-Classical Approach based on the Hadamard Transform for the Convolutional Layer

Hongyi Pan, Xin Zhu, S. Atici, A. Cetin
5/1/2023
33 citations

Official code: phy710/ICML2023-HT (9 stars, Python, MIT, last commit 2025-12-23).

Abstract

In this paper, we propose a novel Hadamard Transform (HT)-based neural network layer for hybrid quantum-classical computing. It implements the regular convolutional layers in the Hadamard transform domain.

Show full abstract

The idea is based on the HT convolution theorem which states that the dyadic convolution between two vectors is equivalent to the element-wise multiplication of their HT representation. Computing the HT is simply the application of a Hadamard gate to each qubit individually, so the HT computations of our proposed layer can be implemented on a quantum computer. Compared to the regular Conv2D layer, the proposed HT-perceptron layer is computationally more efficient. Compared to a CNN with the same number of trainable parameters and 99.26\% test accuracy, our HT network reaches 99.31\% test accuracy with 57.1\% MACs reduced in the MNIST dataset; and in our ImageNet-1K experiments, our HT-based ResNet-50 exceeds the accuracy of the baseline ResNet-50 by 0.59\% center-crop top-1 accuracy using 11.5\% fewer parameters with 12.6\% fewer MACs.

View on arXivView PDF

Code Implementations(1)

phy710/ICML2023-HTOfficial100%
MIT
94Python, ShellMay 26, 202311 months agoMIT

Similar Papers

Cite this paper

@article{pan2023hybrid,
  title  = {A Hybrid Quantum-Classical Approach based on the Hadamard Transform for the Convolutional Layer},
  author = {Hongyi Pan and Xin Zhu and S. Atici and A. Cetin},
  year   = {2023},
  eprint = {2305.17510},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2305.17510},
  journal = {ICML 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.17510.svg)](https://codeofpaper.com/paper/2305.17510)

Discussion