# How to apply multiple mid-circuit measurements on the same wire with resetting and post-selection?

**URL:** <https://discuss.pennylane.ai/t/how-to-apply-multiple-mid-circuit-measurements-on-the-same-wire-with-resetting-and-post-selection/9123>\
**Category:** PennyLane Help\
**Created:** [November 26, 2025, 6:59am UTC](https://discuss.pennylane.ai/t/how-to-apply-multiple-mid-circuit-measurements-on-the-same-wire-with-resetting-and-post-selection/9123 "2025-11-26T06:59:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![CatalinaAlbornoz](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/catalinaalbornoz/32/1196_2.png) [@CatalinaAlbornoz](https://discuss.pennylane.ai/u/CatalinaAlbornoz)\
**Post date:** [November 27, 2025, 10:40pm UTC](https://discuss.pennylane.ai/t/how-to-apply-multiple-mid-circuit-measurements-on-the-same-wire-with-resetting-and-post-selection/9123/2 "2025-11-27T22:40:05Z")

</div>

Hi @Tz_19 ,

This is actually due to the way mid-circuit measurements are performed. It’s a very common error! I recently explained it in [Forum post #9102](https://discuss.pennylane.ai/t/finding-density-matrix-for-mutiple-qubit-for-mbqc/9102/2), so I would recommend checking it out for more details. In short, you need to add more wires to your device, so the easiest way to do it is to let the device automatically detect the number of wires it needs. You can do this by simply not setting a number of wires when you create an instance of `default.qubit`.  
`dev=qml.device("default.qubit")`

Let me know if this solves your issue!

---

_[View the full topic](https://discuss.pennylane.ai/t/how-to-apply-multiple-mid-circuit-measurements-on-the-same-wire-with-resetting-and-post-selection/9123)._
