# Doubt in PF.2.1

**URL:** <https://discuss.pennylane.ai/t/doubt-in-pf-2-1/9203>\
**Category:** Codebook\
**Created:** [January 18, 2026, 7:43am UTC](https://discuss.pennylane.ai/t/doubt-in-pf-2-1/9203 "2026-01-18T07:43:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![swarad](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/swarad/32/4178_2.png) [@swarad](https://discuss.pennylane.ai/u/swarad)\
**Post date:** [January 18, 2026, 7:43am UTC](https://discuss.pennylane.ai/t/doubt-in-pf-2-1/9203/1 "2026-01-18T07:43:01Z")

</div>

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

I am a newbie and i have been trying to debug this  
help will be appreciated

---

<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:** [January 19, 2026, 2:57pm UTC](https://discuss.pennylane.ai/t/doubt-in-pf-2-1/9203/2 "2026-01-19T14:57:24Z")

</div>

Hi @swarad! welcome to the forum  
You approach is almost correct. However, notice the last part of the Codercise instructions where you are told to not assume that the state is normalized.  
The argument `normalize` tells PennyLane whether to normalize the state vector.  
Could that change in any way your code?

Thanks.
