You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "<stdin>", line 1, in<module>
File "/usr/local/lib/python3.6/site-packages/qiskit/circuit/quantumcircuit.py", line 83, in __str__
return str(self.draw(output='text'))
File "/usr/local/lib/python3.6/site-packages/qiskit/tools/visualization/_text.py", line 413, in __str__
returnself.single_string()
File "/usr/local/lib/python3.6/site-packages/qiskit/tools/visualization/_text.py", line 438, in single_string
return"\n".join(self.lines())
File "/usr/local/lib/python3.6/site-packages/qiskit/tools/visualization/_text.py", line 472, in lines
layers = self.build_layers()
File "/usr/local/lib/python3.6/site-packages/qiskit/tools/visualization/_text.py", line 758, in build_layers
elif len(instruction['qubits']) >= 2 and not instruction['cargs']:
KeyError: 'qubits'
Informations
qiskit version 0.7.0
python 3.6.6
Red Hat Entreprise Server 7.4
Current behavior
At circuit draw I get the following error
Steps to reproduce the problem
What is the expected behavior?
It should draw the circuit with no problem, but here it gives a KeyError on "qubits"
Suggested solutions
Maybe it is expecting "qargs" instead of "qubits"?
The text was updated successfully, but these errors were encountered: