@@ -10,6 +10,7 @@ Modular **PennyLane-based quantum machine learning library** implementing reusab
1010
1111• Variational quantum classification (VQC)
1212• Variational quantum regression (VQR)
13+ • Quantum convolutional neural networks (QCNN)
1314• Quantum kernel methods
1415• Trainable quantum kernels (kernel-target alignment)
1516• Quantum metric learning (trainable embedding geometry)
@@ -82,6 +83,26 @@ result = run_vqr(
8283
8384---
8485
86+ ## Quantum convolutional neural network
87+
88+ ``` python
89+ from qml.qcnn import run_qcnn
90+
91+ result = run_qcnn(
92+ n_samples = 200 ,
93+ steps = 50 ,
94+ plot = True ,
95+ )
96+ ```
97+
98+ Learns a small hierarchical quantum classifier using:
99+
100+ • trainable data embedding across four qubits
101+ • shared convolution-style two-qubit blocks
102+ • pooling-style entangling reductions before final readout
103+
104+ ---
105+
85106## Quantum kernel classifier
86107
87108``` python
@@ -184,6 +205,7 @@ from qml.benchmarks import compare_classification_models
184205result = compare_classification_models(
185206 models = [
186207 " vqc" ,
208+ " qcnn" ,
187209 " quantum_kernel" ,
188210 " trainable_quantum_kernel" ,
189211 " logistic_regression" ,
@@ -203,6 +225,7 @@ Benchmarks accept per-model kwargs:
203225result = compare_classification_models(
204226 models = [
205227 " vqc" ,
228+ " qcnn" ,
206229 " quantum_kernel" ,
207230 " trainable_quantum_kernel" ,
208231 ],
@@ -243,6 +266,7 @@ Run workflows directly:
243266
244267``` bash
245268python -m qml vqc --steps 50 --plot
269+ python -m qml qcnn --steps 50 --plot
246270python -m qml regression --steps 50 --plot
247271python -m qml kernel --plot
248272python -m qml trainable-kernel --steps 50 --plot
@@ -253,7 +277,7 @@ Run benchmarks:
253277
254278``` bash
255279python -m qml benchmark classification \
256- --models vqc quantum_kernel svm_classifier logistic_regression \
280+ --models vqc qcnn quantum_kernel svm_classifier logistic_regression \
257281 --seeds 123 456
258282```
259283
@@ -283,13 +307,17 @@ Algorithm notes:
283307
284308• docs/qml/variational_quantum_classifier.md
285309• docs/qml/variational_regression.md
310+ • docs/qml/qcnn.md
286311• docs/qml/quantum_kernels.md
312+ • docs/qml/metric_learning.md
287313
288314Example notebooks:
289315
290316• quantum_variational_classifier.ipynb
291317• quantum_regressor.ipynb
318+ • quantum_convolutional_neural_network.ipynb
292319• quantum_kernel_classifier.ipynb
320+ • quantum_metric_learning.ipynb
293321• classical_vs_quantum_classifier.ipynb
294322
295323---
311339 regression.py
312340 variational quantum regression workflows
313341
342+ qcnn.py
343+ quantum convolutional classifier workflows
344+
314345 kernel_methods.py
315346 quantum kernel workflows
316347
0 commit comments