Qiskit's draw only shows the circuit's name and not the architecture

Viewed 217

Upon trying to draw a ZZFeatureMap instance, I only see the name "ZZFeatureMap" and not its architecture. Please find the code snippet and output attached:

from qiskit.circuit.library import ZZFeatureMap
zz = ZZFeatureMap(2, entanglement="full", reps=2)
zz.draw("mpl")

enter image description here

However, print(zz) prints the architecture of the circuit but it is not drawn with matplotlib.

enter image description here

Please help me draw the internals of the architecture of circuit with the draw() function. Thank you!

1 Answers
Related