# A Quantum Convolutional Neural Network on NISQ Devices

NISQ 장치에서의 양자 합성곱 신경망

ShiJie Wei, YanHu Chen, ZengRong Zhou, GuiLu Long · arXiv · 2021년 4월 14일

- **연구 문제** 고전 CNN의 합성곱 층은 입력 크기 M에 따라 계산 비용이 커지므로, NISQ 장치에서 실행 가능한 양자 합성곱 신경망을 설계하는 것이 문제입니다.
- **연구 방법** 입력 이미지를 진폭 인코딩하고, 필터 연산을 선형 결합 유니타리 연산과 보조 레지스터 측정으로 구현하며, 큐비트 제거로 풀링을 모사하고 해밀토니언 기댓값으로 완전연결 층을 구성합니다.
- **주요 결과** 고정 필터 시뮬레이션에서는 고전 합성곱과 같은 출력이 보고되며, MNIST 두 클래스 분류에서는 CNN 0.972 대비 QCNN 0.960과 0.963, 열 개 클래스 분류에서는 CNN 0.804 대비 QCNN 0.740과 0.743이 보고됩니다.

## 기존 CNN 계산 비용과 NISQ 장치의 제약

합성곱 신경망(CNN)은 이미지에서 이웃 픽셀의 상관관계를 활용하지만, 입력 이미지 크기 M이 커질수록 합성곱 층의 계산 비용이 O(M2)로 증가합니다. 논문은 잡음이 있는 중간 규모 양자(NISQ) 장치에서 실행 가능한 양자 합성곱 신경망(QCNN)을 제안하여 이 비용 증가를 줄이는 것을 목표로 합니다.

이 논문이 다루는 범위는 합성곱 층, 풀링 층, 완전연결 층을 양자 회로로 순차 구현하는 기본 틀과 두 가지 실험입니다. 실험은 이미지 필터링 시뮬레이션과 MNIST 손글씨 인식입니다. 따라서 이 설계가 모든 양자 학습 문제에 일반적으로 적용된다고 볼 수는 없습니다.

## 양자 합성곱 층의 필터 연산

입력 이미지 F는 열 우선 순서로 펼쳐져 진폭 인코딩된 양자 상태 \|f⟩로 준비됩니다. 픽셀의 위치는 계산 기저 상태에 대응하고 픽셀 값은 확률 진폭에 대응합니다. 고전 필터 연산 G = F∗W를 양자 상태에서 나타내기 위해, 비유니타리 필터 연산자 U를 네 개의 유니타리 연산자의 선형 결합으로 분해하는 방법이 먼저 제시됩니다. 그러나 이 분해의 게이트 비용이 차원에 따라 지수적으로 커지므로, 저자들은 필터 행렬의 가장자리 원소를 재배열한 연산자 U′를 새로 구성합니다.

![Figure 5: Decomposition of operator E1 in the form of basic gates](https://refivu.com/papers/4152d043-cd1e-4636-bea8-6f9262b67c82/figures/figure-7cec17708caf33c91e5a180c67c9158f.png?thumb=512)

**Figure 5** : Decomposition of operator E1 in the form of basic gates.

[원문](https://arxiv.org/abs/2104.06918v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · ShiJie Wei, YanHu Chen, ZengRong Zhou, GuiLu Long · A Quantum Convolutional Neural Network on NISQ Devices · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

U′는 아홉 개의 유니타리 연산자 Qk의 선형 결합으로 표현되며, 보조 레지스터 S가 각 Qk의 계수 βk에 대응하는 상태를 만듭니다. 보조 레지스터가 \|0000⟩으로 측정되면 필터 연산이 성공한 것으로 취급됩니다. 논문은 이 연산자가 필터 마스크 W에 대응하며 가장자리 픽셀을 제외한 내부 픽셀 값은 고전 필터 결과와 같다고 증명 부록에서 설명합니다.

## 양자 풀링과 완전연결 계층

풀링 층은 2×2 평균 풀링에 대응하도록 일부 큐비트를 버리는 방식으로 구현됩니다. 논문은 MNIST 실험에서 보조 큐비트 중 4번째와 9번째 큐비트를 버린다고 설명합니다. 완전연결 층은 항등 연산자와 Pauli σz의 곱으로 구성된 매개변수화된 해밀토니언 H의 기댓값 f(p) = ⟨p\|H\|p⟩를 측정합니다. 이 값에 활성화 함수를 적용하여 최종 분류 출력을 얻습니다.

학습 과정에서 해밀토니언의 매개변수는 기댓값의 기울기를 사용하는 경사하강법으로 갱신되며, S 행렬의 매개변수는 고전 역전파로 학습됩니다. 두 클래스 분류에서는 활성화 값이 0에 가까우면 문자 1, 1에 가까우면 문자 8로 분류합니다.

## 이미지 필터링 시뮬레이션의 검증 범위

첫 번째 검증은 에지 검출, 이미지 스무딩, 샤프닝 세 가지 고정 필터 마스크를 사용한 시뮬레이션입니다. 이 실험에서는 고전 합성곱 층과 양자 합성곱 층의 출력 이미지가 정확히 같다고 보고됩니다. 이 결과는 고정된 필터 마스크에서 얻은 것이며 학습된 필터 마스크에 대한 결과는 포함하지 않습니다.

![Figure 3: Three types of image processing, edge detection, image smoothing and sharpening, are implemented on an image by classical method and quantum method r…](https://refivu.com/papers/4152d043-cd1e-4636-bea8-6f9262b67c82/figures/figure-a5675d647600911aecee3ebc931c8d41.png?thumb=512)

**Figure 3** : Three types of image processing, edge detection, image smoothing and sharpening, are implemented on an image by classical method and quantum method respectively.

[원문](https://arxiv.org/abs/2104.06918v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · ShiJie Wei, YanHu Chen, ZengRong Zhou, GuiLu Long · A Quantum Convolutional Neural Network on NISQ Devices · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

## MNIST 인식 실험과 CNN 비교

두 번째 검증은 MNIST 손글씨 인식입니다. 두 클래스 실험에서는 문자 1과 8을 분류하며 학습 집합 5000장과 테스트 집합 2100장을 사용합니다. 열 개 클래스 실험에서는 0부터 9까지를 분류하며 학습 집합 60000장과 테스트 집합 10000장을 사용합니다. 잡음 QCNN은 각 연산 뒤 확률 0.01로 단일 큐비트 Pauli 게이트를 작용시키는 모델로 가정됩니다. 두 클래스 분류에서 평균 테스트 정확도는 잡음 QCNN 0.960, 잡음 없는 QCNN 0.963, CNN 0.972로 보고됩니다.

열 개 클래스 분류에서는 평균 테스트 정확도가 잡음 QCNN 0.740, 잡음 없는 QCNN 0.743, CNN 0.804입니다. 저자들은 두 모델의 성능이 비슷하다고 해석하며, QCNN은 학습 매개변수 수가 적고 변동 범위가 작다고 보고합니다. 이 비교는 100회 반복 실험의 평균에 근거하며, 두 클래스와 열 개 클래스 결과의 차이를 한 값으로 합치지 않아야 합니다.

## 게이트 복잡도와 매개변수 규모

QCNN의 기본 게이트 복잡도는 O((log2 M)6)로 제시됩니다. 이는 합성곱 층을 구현하는 Qk 연산이 O(n6) 기본 게이트로 분해된다는 부록 설명에서 나온 결과입니다. 고전 합성곱 층의 복잡도는 O(M2)로 비교되며, 이를 근거로 저자들은 게이트 복잡도 측면에서 지수적 속도 향상이 있다고 주장합니다. 매개변수 수는 QCNN에서 입력 크기와 독립적이라고 제시됩니다.

다만 이 복잡도 비교는 이론적 게이트 수에 대한 것이며, 실제 하드웨어에서의 실행 시간이나 측정 결과를 직접 보여 주는 실험은 아닙니다. 두 클래스 실험에서 QCNN의 학습 매개변수 수는 46, CNN은 265로 표에 보고되며, 열 개 클래스 실험에서는 QCNN 379, CNN 2569입니다.

![Table I: The important parameters of models](https://refivu.com/papers/4152d043-cd1e-4636-bea8-6f9262b67c82/figures/figure-43540a8dc6d20a7a5ea3047b2982f911.png?thumb=512)

**원문 그림** Table I: The important parameters of models

[원문](https://arxiv.org/abs/2104.06918v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · ShiJie Wei, YanHu Chen, ZengRong Zhou, GuiLu Long · A Quantum Convolutional Neural Network on NISQ Devices · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 남은 질문

이 결과는 MNIST 데이터셋과 시뮬레이션 설정에서 얻은 것입니다. 잡음 모델은 확률 0.01의 단일 큐비트 Pauli 연산으로 가정되었으며, 실제 장치의 잡음 특성을 그대로 반영한 것은 아닙니다. 또한 이미지 처리 실험은 고정된 필터 마스크에 대한 시뮬레이션이며, 열 개 클래스 분류에서는 CNN이 QCNN보다 높은 정확도를 보입니다.

복잡도 우위는 기본 게이트 수에 대한 이론적 주장입니다. 논문은 이를 실행 가능한 구현으로 제시하지만, 본 근거에서는 실제 양자 하드웨어 실행 결과는 확인되지 않습니다.

## 논문 정보

- **저자**: ShiJie Wei, YanHu Chen, ZengRong Zhou, GuiLu Long
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2021년 4월 14일
- **등록일**: 2026년 11월 6일
- **수정일**: 2021년 4월 22일
- **버전**: v3
- **arXiv**: 2104.06918
- **분류**: quant-ph
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2104.06918v3) · [원문 PDF ↗](https://arxiv.org/pdf/2104.06918v3)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Quantum machine learning is one of the most promising applications of quantum computing in the Noisy Intermediate-Scale Quantum(NISQ) era. Here we propose a quantum convolutional neural network(QCNN) inspired by convolutional neural networks(CNN), which greatly reduces the computing complexity compared with its classical counterparts, with $O((log\_{2}M)^6) $ basic gates and $O(m^2+e)$ variational parameters, where $M$ is the input data size, $m$ is the filter mask size and $e$ is the number of parameters in a Hamiltonian. Our model is robust to certain noise for image recognition tasks and the parameters are independent on the input sizes, making it friendly to near-term quantum devices. We demonstrate QCNN with two explicit examples. First, QCNN is applied to image processing and numerical simulation of three types of spatial filtering, image smoothing, sharpening, and edge detection are performed. Secondly, we demonstrate QCNN in recognizing image, namely, the recognition of handwritten numbers. Compared with previous work, this machine learning model can provide implementable quantum circuits that accurately corresponds to a specific classical convolutional kernel. It provides an efficient avenue to transform CNN to QCNN directly and opens up the prospect of exploiting quantum power to process information in the era of big data.

## 원문 인용

ShiJie Wei, YanHu Chen, ZengRong Zhou, GuiLu Long (2021). A Quantum Convolutional Neural Network on NISQ Devices. arXiv:2104.06918v3. https://arxiv.org/abs/2104.06918v3

**BibTeX**

```
@misc{wei2021quantum,
  title = {{A Quantum Convolutional Neural Network on NISQ Devices}},
  author = {ShiJie Wei and YanHu Chen and ZengRong Zhou and GuiLu Long},
  year = {2021},
  eprint = {2104.06918},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.06918v3}
}
```

## 이 논문의 용어

- [MNIST](https://refivu.com/terms/28b9bb66d1c6-mnist)
- [경사하강법](https://refivu.com/terms/f46c6b550510-gradient-descent)
- [convolutional neural networks](https://refivu.com/terms/936419759d72-convolutional-neural-networks)
- [average pooling](https://refivu.com/terms/bb8b271e18a3-average-pooling)
- [activation function](https://refivu.com/terms/24a6d238abcb-activation-function)
- [amplitude encoding](https://refivu.com/terms/96192856c535-amplitude-encoding)
- [gate complexity](https://refivu.com/terms/d0c9a62913e6-gate-complexity)
- [quantum random access memory](https://refivu.com/terms/15a15ca7155d-quantum-random-access-memory)

## 다른 논문 해설

- [An Experimental Analysis of Attack Classification Using Machine Learning in IoT Networks](https://refivu.com/papers/050477db-0a85-4138-8669-e746c016e596-an-experimental-analysis-of-attack-classification-using.md)
- [BEHRT: Transformer for Electronic Health Records](https://refivu.com/papers/cadb146f-6d4d-4255-8058-89ac62ed2dc8-behrt-transformer-for-electronic-health-records.md)
- [PredRNN: A Recurrent Neural Network for Spatiotemporal Predictive Learning](https://refivu.com/papers/c0da3abd-5c1e-4383-ae59-22d04fe3eb7d-predrnn-a-recurrent-neural-network-for-spatiotemporal.md)
- [SuperSpike: Supervised learning in multi-layer spiking neural networks](https://refivu.com/papers/69e65b6b-2815-4179-aaac-1c5294019aba-superspike-supervised-learning-in-multi-layer-spiking-neural.md)
- [AttentionViz: A Global View of Transformer Attention](https://refivu.com/papers/070e8eaa-a548-44ca-8077-3ab478512ec5-attentionviz-a-global-view-of-transformer-attention.md)
- [An Overview of Backdoor Attacks Against Deep Neural Networks and Possible Defences](https://refivu.com/papers/40fecf2b-a3fb-4971-934f-d8e78a4188a7-an-overview-of-backdoor-attacks-against-deep-neural.md)
- [A Survey on Contrastive Self-supervised Learning](https://refivu.com/papers/96ece942-a5ea-4ce6-9ec5-3a38107aeef7-a-survey-on-contrastive-self-supervised-learning.md)
- [TransMed: Transformers Advance Multi-modal Medical Image Classification](https://refivu.com/papers/23fc0792-8c66-4fa5-9842-427e13e4215b-transmed-transformers-advance-multi-modal-medical-image.md)
- [A Review on Deep Learning in UAV Remote Sensing](https://refivu.com/papers/f77508ce-8fbf-4452-ad88-b2606bb8b0d4-a-review-on-deep-learning-in-uav-remote.md)
- [Graph Learning: A Survey](https://refivu.com/papers/3ea8a261-7c0e-4c24-8f31-8bc870a9cf84-graph-learning-a-survey.md)
- [DeepPurpose: a Deep Learning Library for Drug-Target Interaction Prediction](https://refivu.com/papers/4b10619c-0652-4129-87c0-5f65578d8488-deeppurpose-a-deep-learning-library-for-drug-target.md)
- [Fine-Grained Image Analysis with Deep Learning: A Survey](https://refivu.com/papers/225ddd40-96a5-4a36-bb16-28857f71c737-fine-grained-image-analysis-with-deep-learning-a.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/4152d043-cd1e-4636-bea8-6f9262b67c82-a-quantum-convolutional-neural-network-on-nisq-devices)
