Printing circuit from tutorial

I’d like to print the quantum circuit that I created in the quantum chemistry tutorials. I’ve tried using qml.draw but it’s not producing any output. I specifically like to print the circuits created in this tutorial

I’d appreciate any pointers on how to do this. Thanks.

Hi @JoshLipman,

Great question! We now have a very nice matplotlib drawer. You can learn more about it in the docs. There you will find several examples in the “usage_details” section.

As a quick summary, all you need to do is use qml.draw_mpl(circuit_name)(params). In this case circuit_name is circuit and params are your parameters.

Please let me know if this helps or if you run into problems!