# The new pennylane v0.33 cannot support Ionizer

**URL:** <https://discuss.pennylane.ai/t/the-new-pennylane-v0-33-cannot-support-ionizer/3613>\
**Category:** PennyLane Help\
**Created:** [October 31, 2023, 9:08pm UTC](https://discuss.pennylane.ai/t/the-new-pennylane-v0-33-cannot-support-ionizer/3613 "2023-10-31T21:08:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cheng\_Chu](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/cheng_chu/32/1981_2.png) [@Cheng\_Chu](https://discuss.pennylane.ai/u/Cheng_Chu)\
**Post date:** [October 31, 2023, 9:08pm UTC](https://discuss.pennylane.ai/t/the-new-pennylane-v0-33-cannot-support-ionizer/3613/1 "2023-10-31T21:08:22Z")

</div>

Hello,

I met a bug when the pennylane v0.33 released. I try to use the Ionizer to compile circuit into trapped ion native gates. And I follow the pennylane blog [https://pennylane.ai/blog/2023/06/the-ionizer-building-a-hardware-specific-transpiler-using-pennylane/](https://pennylane.ai/blog/2023/06/the-ionizer-building-a-hardware-specific-transpiler-using-pennylane/). But it doesn’t work when the pennylane v0.33 released.

Here is the code I used.

```auto
dev = qml.device("default.qubit", wires=2)
my_adder_circuit = qml.from_qasm(adder_circuit.qasm())

@qml.qnode(dev)
@ionize
def circuit():
    qml.RX(0.1, wires=1)
    qml.CNOT(wires=[0, 1])
    return qml.expval(qml.PauliZ(0))

qml.specs(circuit)()

```

Then I will get the error.

```auto
AttributeError: 'TransformDispatcher' object has no attribute 'tape_fn'

```

Can anybody help me with it? Any help will be appreciated.

---

<div class="post-metadata">

**Author:** ![glassnotes\_alt](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/glassnotes_alt/32/2043_2.png) [@glassnotes\_alt](https://discuss.pennylane.ai/u/glassnotes_alt)\
**Post date:** [November 1, 2023, 12:44am UTC](https://discuss.pennylane.ai/t/the-new-pennylane-v0-33-cannot-support-ionizer/3613/2 "2023-11-01T00:44:11Z")

</div>

Hi @Cheng_Chu,

Developer of the Ionizer here - thanks for catching this! I believe there are some differences in how transforms are working in v0.33. I have made [an issue](https://github.com/QSAR-UBC/ionizer/issues/5) on the Ionizer GitHub page and will work on a fix ASAP!

---

<div class="post-metadata">

**Author:** ![glassnotes\_alt](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/glassnotes_alt/32/2043_2.png) [@glassnotes\_alt](https://discuss.pennylane.ai/u/glassnotes_alt)\
**Post date:** [November 1, 2023, 3:13pm UTC](https://discuss.pennylane.ai/t/the-new-pennylane-v0-33-cannot-support-ionizer/3613/3 "2023-11-01T15:13:35Z")

</div>

@Cheng_Chu I have updated the package to version 0.2 to support PL 0.33. Please give it a shot and let me know if you run into any other issues. (While I’ve added more tests, I recommend to verify matrix equivalence before/after the transforms when possible, as a sanity check)

---

<div class="post-metadata">

**Author:** ![Cheng\_Chu](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/cheng_chu/32/1981_2.png) [@Cheng\_Chu](https://discuss.pennylane.ai/u/Cheng_Chu)\
**Post date:** [November 1, 2023, 3:20pm UTC](https://discuss.pennylane.ai/t/the-new-pennylane-v0-33-cannot-support-ionizer/3613/4 "2023-11-01T15:20:35Z")

</div>

Hi @glassnotes_alt ,

Really appreciate for your timely fixes and updates. I will try it.

---

<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 2, 2023, 3:55am UTC](https://discuss.pennylane.ai/t/the-new-pennylane-v0-33-cannot-support-ionizer/3613/5 "2023-11-02T03:55:04Z")

</div>

Thanks for the super quick fix @glassnotes_alt ! And thank you for reporting the issue @Cheng_Chu !
