pennylane-qiskit icon indicating copy to clipboard operation
pennylane-qiskit copied to clipboard

Update plugin to natively support Ugate, Pgate, and SXgate

Open josh146 opened this issue 4 years ago • 4 comments

  • The Ugate is the new Qiskit label for the U3gate

  • The Pgate corresponds to the PennyLane PhaseShift operation

  • The SXgate (sqrtX gate) is new, and currently does not have a PennyLane native equivalent.

  • Qiskit has deprecated the [u1, u2, u3] basis in favour of the new [p, sx] basis.

Once the above gates are natively available in PennyLane, we should update the plugin to use the newly available gates.

josh146 avatar Oct 20 '20 06:10 josh146

Hey! Is this issue still open? The SXgate is now supported and cant be used in the plugin too right? I understand Ugate and Pgate have already been updated in the v0.23 update.

charmerDark avatar May 27 '21 19:05 charmerDark

Hi @charmerDark, having a look at the Qiskit device's supported operations, https://github.com/PennyLaneAI/pennylane-qiskit/blob/57934622ee0531212e032c6dd24271c5fd1b4d6d/pennylane_qiskit/qiskit_device.py#L36 it appears that SX is not yet listed. Further, ex.PhaseGate and ex.U3Gate currently in used by the plugin might be deprecated by Qiskit and could be in need of an update!

So I would say that this issue is still valid, yes.

josh146 avatar May 28 '21 05:05 josh146

Hey! Is this issue still open? The SXgate is now supported and cant be used in the plugin too right? I understand Ugate and Pgate have already been updated in the v0.23 update.

I'm sorry..I meant now that SX is available on pennylane, it could be added to the list of supported operations. the 'cant' was a typo :sweat_smile:

charmerDark avatar May 28 '21 08:05 charmerDark

Ah I see, yes definitely @charmerDark!

josh146 avatar May 28 '21 09:05 josh146