-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
@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
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working