Qiskit / qiskit

Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives.
https://www.ibm.com/quantum/qiskit
Apache License 2.0
5.1k stars 2.34k forks source link

Circuit Rz Gate has no "label" attribute #11723

Open maximeLav opened 7 months ago

maximeLav commented 7 months ago

Environment

What is happening?

The Rx and Ry gates both have label attributes, why not the Rz gate?

How can we reproduce the issue?


qc_z = QuantumCircuit(1, 1)
qc_z.ry(0.5, 0)
qc_z.rz(0.5, 0, label="qc_z_phi")] ```

### What should happen?

The Rz gate should have a label attribute to label the gate accordingly.

### Any suggestions?

_No response_
atharva-satpute commented 4 months ago

Can I take up this issue?

1ucian0 commented 1 month ago

Go head @atharva-satpute !