{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/a-hybrid-quantum-classical-approach-based-on","title":"A Hybrid Quantum-Classical Approach based on the Hadamard Transform for the Convolutional Layer","arxiv_id":"2305.17510","date":"2023-05-27","proceeding":null,"authors":["Hongyi Pan","Xin Zhu","Salih Atici","Ahmet Enis Cetin"],"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. 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.","url_abs":"https://arxiv.org/abs/2305.17510v3","url_pdf":"https://arxiv.org/pdf/2305.17510v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"a-hybrid-quantum-classical-approach-based-on","repo_url":"https://github.com/phy710/icml2023-ht","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[{"method_slug":"convolution","method_name":"Convolution"},{"method_slug":"test","method_name":"Test"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2305.17510","atlas_url":"https://app.syntology.ai/?focus=2305.17510","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2305.17510"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/phy710/ICML2023-HT","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/phy710/icml2023-ht","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":2,"ran_honours":1,"ran_fixture":2,"unverified":1},"by_repo_kind":{"official":{"samples":6,"ran":5,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"5d48f19cbf60fad8","entry":"SoftThresholding","repo":"phy710/icml2023-ht","repo_kind":"official","path":"layers/WHT.py","file_url":"https://github.com/phy710/icml2023-ht/blob/HEAD/layers/WHT.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5d48f19cbf60fad8"}},{"code_sha256_prefix":"cdad002cfdfd35eb","entry":"WHTConv2D","repo":"phy710/icml2023-ht","repo_kind":"official","path":"layers/WHT.py","file_url":"https://github.com/phy710/icml2023-ht/blob/HEAD/layers/WHT.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cdad002cfdfd35eb"}},{"code_sha256_prefix":"9d7ab07a2e30520f","entry":"find_min_power","repo":"phy710/icml2023-ht","repo_kind":"official","path":"layers/WHT.py","file_url":"https://github.com/phy710/icml2023-ht/blob/HEAD/layers/WHT.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9d7ab07a2e30520f"}},{"code_sha256_prefix":"744bbca62035d3c5","entry":"fwht","repo":"phy710/icml2023-ht","repo_kind":"official","path":"layers/WHT.py","file_url":"https://github.com/phy710/icml2023-ht/blob/HEAD/layers/WHT.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"744bbca62035d3c5"}},{"code_sha256_prefix":"e03cfad49680f129","entry":"ifwht","repo":"phy710/icml2023-ht","repo_kind":"official","path":"layers/WHT.py","file_url":"https://github.com/phy710/icml2023-ht/blob/HEAD/layers/WHT.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e03cfad49680f129"}},{"code_sha256_prefix":"5f5706a58cb49168","entry":"read_cifar10","repo":"phy710/ICML2023-HT","repo_kind":"official","path":"CIFAR10/resnet20-HTConvx3/read_data.py","file_url":"https://github.com/phy710/ICML2023-HT/blob/HEAD/CIFAR10/resnet20-HTConvx3/read_data.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5f5706a58cb49168"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}