# How to combine Quantum transfer learning and QNN

**URL:** <https://discuss.pennylane.ai/t/how-to-combine-quantum-transfer-learning-and-qnn/3676>\
**Category:** PennyLane Help\
**Created:** [November 13, 2023, 12:54pm UTC](https://discuss.pennylane.ai/t/how-to-combine-quantum-transfer-learning-and-qnn/3676 "2023-11-13T12:54:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![leo07010](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/leo07010/32/2094_2.png) [@leo07010](https://discuss.pennylane.ai/u/leo07010)\
**Post date:** [November 13, 2023, 12:54pm UTC](https://discuss.pennylane.ai/t/how-to-combine-quantum-transfer-learning-and-qnn/3676/1 "2023-11-13T12:54:35Z")

</div>

I want to use QNN in the code mode

> **[Quantum transfer learning | PennyLane Demos](https://pennylane.ai/qml/demos/tutorial_quantum_transfer_learning/)**
>
> Combine PyTorch and PennyLane to train a hybrid quantum-classical image classifier using transfer learning.

---

<div class="post-metadata">

**Author:** ![isaacdevlugt](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/isaacdevlugt/32/1159_2.png) [@isaacdevlugt](https://discuss.pennylane.ai/u/isaacdevlugt)\
**Post date:** [November 14, 2023, 4:15pm UTC](https://discuss.pennylane.ai/t/how-to-combine-quantum-transfer-learning-and-qnn/3676/2 "2023-11-14T16:15:29Z")

</div>

Hey @leo07010! Welcome to the forum 🙂

I’m not sure I completely understand your question, but you can download all of the pennylane demos to your laptop and modify them to your hearts content! There should be a “download notebook” option / button on the right hand side of your browser. Let me know if this helps!

---

<div class="post-metadata">

**Author:** ![leo07010](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/leo07010/32/2094_2.png) [@leo07010](https://discuss.pennylane.ai/u/leo07010)\
**Post date:** [November 15, 2023, 2:45pm UTC](https://discuss.pennylane.ai/t/how-to-combine-quantum-transfer-learning-and-qnn/3676/3 "2023-11-15T14:45:21Z")

</div>

What I mean is that here I want to replace conv1 with Qconv.

 ![image](https://canada1.discourse-cdn.com/flex012/uploads/pennylane/original/2X/c/c704d36f24dfc6d8e36d588f313927bf24ea5404.png)

---

<div class="post-metadata">

**Author:** ![isaacdevlugt](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/isaacdevlugt/32/1159_2.png) [@isaacdevlugt](https://discuss.pennylane.ai/u/isaacdevlugt)\
**Post date:** [November 15, 2023, 5:23pm UTC](https://discuss.pennylane.ai/t/how-to-combine-quantum-transfer-learning-and-qnn/3676/4 "2023-11-15T17:23:07Z")

</div>

Sorry @leo07010, I’m missing a lot of details here 😕. Maybe you want to learn more about quantum convolutional neural networks? If so, we have a great demo worth checking out:

> **[Quanvolutional Neural Networks | PennyLane Demos](https://pennylane.ai/qml/demos/tutorial_quanvolution/)**
>
> Train a quantum convolutional neural network to classify MNIST images.

Also, you might find some other demos about interfacing pennylane with torch/tensorflow useful:

> **[Turning quantum nodes into Torch Layers | PennyLane Demos](https://pennylane.ai/qml/demos/tutorial_qnn_module_torch/)**
>
> Learn how to create hybrid ML models in PennyLane using Torch

> **[Turning quantum nodes into Keras Layers | PennyLane Demos](https://pennylane.ai/qml/demos/tutorial_qnn_module_tf/)**
>
> Learn how to create hybrid ML models in PennyLane using Keras

Let me know if this helps!
