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/. But it doesn’t work when the pennylane v0.33 released.
Here is the code I used.
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.
AttributeError: 'TransformDispatcher' object has no attribute 'tape_fn'
Can anybody help me with it? Any help will be appreciated.