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

Control wires are not correctly displayed #768

Closed
delapuente opened this issue Aug 10, 2018 · 0 comments · Fixed by #766
Closed

Control wires are not correctly displayed #768

delapuente opened this issue Aug 10, 2018 · 0 comments · Fixed by #766
Labels
bug Something isn't working

Comments

@delapuente
Copy link
Contributor

delapuente commented Aug 10, 2018

@nkanazawa1989 noted:

Summary

  • Bug fix for conditional gate when multiple classical registers are included.
  • Modify the appearance of classical-bit related gates to one in latex_circuit_drawer.

Steps to reproduce

The bug reported in Slack:
e.g.

qreg = QuantumRegister(3, name='q')
creg1 = ClassicalRegister(3, name='c1')
creg2 = ClassicalRegister(2, name='c2')
qc = QuantumCircuit(qreg, creg1, creg2)

qc.measure(qreg, creg1)
qc.x(qreg[0]).c_if(creg1, 3)

Expected behaviour

The conditional only involves the classical register named c1.

Current behaviour

index_bug

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