Virtual Z gates

I want to use Pennylane as a pulse simulator. I saw there are a few tutorials about this like this one: Pulse programming on OQC Lucy in PennyLane | PennyLane Demos. I wonder if there is a way to perform virtual Z gates comfortably, similar to qiskit. I could not find anything related to VZ gates in Pennylane docs and forum.

Thanks in advance!

Hi @Kernel123 , welcome to the Forum!

I can see from this paper that virtual Z gates should be realizable but I’m not sure why they’re not mentioned in the corresponding demo. Let me check.

Hey @Kernel123 , it seems like you can just do a normal Z gate.

Hello @CatalinaAlbornoz! Thanks for your reply.
Yes, I know I can perform normal Z gates. I was just wondering if there is some handy way to perform VZ gates, as it avoids using a real gate reducing considerably the number of gates in general. It is just adding a cumulative phase for the next gates, so I can do it myself manually anyways. However, it would be cool having a function that natively implements it, I believe.
Thank you again!

Yes, I see your point @Kernel123. I’ll pass on your feedback to see if this is something we could add to PennyLane in the future.

Thanks for mentioning it and please let us know if you have any further thoughts, questions or ideas about PennyLane! :smiley: