Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

controlled gates remove gate labels #4217

Closed
1ucian0 opened this issue Apr 22, 2020 · 0 comments · Fixed by #4218
Closed

controlled gates remove gate labels #4217

1ucian0 opened this issue Apr 22, 2020 · 0 comments · Fixed by #4218
Labels
bug Something isn't working

Comments

@1ucian0
Copy link
Member

1ucian0 commented Apr 22, 2020

Information

  • Qiskit Terra version: master
  • Python version: 3.7
  • Operating system: MacOS

What is the current behavior?

The controlled gate code seems to ignore labeling at all.

Steps to reproduce the problem

ch = HGate(label='a gate').control(label='a controlled gate')
print(ch.label)
print(ch.base_gate.label)
None
None

What is the expected behavior?

The output should be:

a controlled gate
a gate

Suggested solutions

Something like this #4218

@1ucian0 1ucian0 added the bug Something isn't working label Apr 22, 2020
@mergify mergify bot closed this as completed in #4218 Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant