# Where should a VQC be inserted in a CNN backbone for hybrid quantum-classical models?

**URL:** <https://discuss.pennylane.ai/t/where-should-a-vqc-be-inserted-in-a-cnn-backbone-for-hybrid-quantum-classical-models/8478>\
**Category:** PennyLane Help\
**Created:** [May 3, 2025, 2:20am UTC](https://discuss.pennylane.ai/t/where-should-a-vqc-be-inserted-in-a-cnn-backbone-for-hybrid-quantum-classical-models/8478 "2025-05-03T02:20:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![quantum\_expert\_123](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/quantum_expert_123/32/3701_2.png) [@quantum\_expert\_123](https://discuss.pennylane.ai/u/quantum_expert_123)\
**Post date:** [May 3, 2025, 2:20am UTC](https://discuss.pennylane.ai/t/where-should-a-vqc-be-inserted-in-a-cnn-backbone-for-hybrid-quantum-classical-models/8478/1 "2025-05-03T02:20:56Z")

</div>

Hi everyone,

I’m working on a hybrid quantum-classical model where I integrate a Variational Quantum Circuit (VQC) into a CNN (e.g., ResNet or VGG) for image classification tasks. Most examples I’ve seen replace the final fully connected (FC) layer with a quantum circuit, but I’m curious about the implications of placing the VQC at different positions within the CNN backbone.

Specifically, I’m exploring options like:

- Inserting the VQC after `layer2` or `layer3`
- Using it before the final pooling layer
- Replacing the FC head as usual

**My question is** :  
_How does the position of the VQC in the CNN affect model performance, feature representation, and gradient flow?_ Are there any insights from research or practical experiments on the impact of early vs late insertion?

I’d appreciate references, examples, or guidance on what others have found effective.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![daniela.murcillo](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/daniela.murcillo/32/3612_2.png) [@daniela.murcillo](https://discuss.pennylane.ai/u/daniela.murcillo)\
**Post date:** [May 5, 2025, 3:25pm UTC](https://discuss.pennylane.ai/t/where-should-a-vqc-be-inserted-in-a-cnn-backbone-for-hybrid-quantum-classical-models/8478/2 "2025-05-05T15:25:52Z")

</div>

Hi @quantum_expert_123 !  
I want to start by saying that I am not aware of particular research addressing your question.  
It seems to me like the optimal choice would depend on the specific characteristics of your classification task.  
I did a quick literature review and mostly found what you said about replacing the final FC with a quantum circuit.  
This [paper](https://arxiv.org/abs/2305.18961) on Quantum Convolutional Neural Networks for Multi-Channel Supervised Learning has a nice literature review. I found two other papers relevant in this context: [Lean classical-quantum hybrid neural network model for image classification](https://arxiv.org/abs/2412.02059) and [Hybrid Quantum Neural Network in High-dimensional Data Classification](https://arxiv.org/abs/2312.01024)

You could always try and experiment with the position of the VQC for your particular case and come to new conclusions!

Good luck!

---

<div class="post-metadata">

**Author:** ![quantum\_expert\_123](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/quantum_expert_123/32/3701_2.png) [@quantum\_expert\_123](https://discuss.pennylane.ai/u/quantum_expert_123)\
**Post date:** [May 8, 2025, 9:33am UTC](https://discuss.pennylane.ai/t/where-should-a-vqc-be-inserted-in-a-cnn-backbone-for-hybrid-quantum-classical-models/8478/3 "2025-05-08T09:33:16Z")

</div>

Hi @daniela.murcillo, thank you for your help! My research involves trying to apply a hybrid quantum classical CNN to medical images to see if there are any improvements over classical CNNs. Sure, I will experiment with this then, thanks again for your help!
