PennyLaneAI / pennylane

PennyLane is a cross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry. Train a quantum computer the same way as a neural network.
https://pennylane.ai
Apache License 2.0
2.27k stars 585 forks source link

Request for new matplotlib drawing styles #2555

Open albi3ro opened 2 years ago

albi3ro commented 2 years ago

This is an ongoing issue where we always welcome more contributions.

Introduction and Motivation

PennyLane currently has multiple in-built styles for use with our matplotlib circuit drawer:

See the documentation for these styles on the qml.drawer page. These styles work by setting matplotlib's rcParams dictionary.

We welcome contributors to submit new styles.

Each style should update the plt.rcParams configuration to make clean and readable circuit diagram graphics. Creating a new style is more about visual design than any coding.

Code requirements

To add a new style:

trentfridey commented 2 years ago

Hello - I have a PR with a couple new styles added, but I am running into a couple errors when completing the PR checklist:

Can you advise on what I need to do to fix these errors?

josh146 commented 2 years ago

Hey @trentfridey! It sounds like missing dependencies; can you see if

pip install xanadu-sphinx-theme flaky

fixes it?

trentfridey commented 2 years ago

Thanks, that seemed to fix it

trentfridey commented 2 years ago

The PR is ready for review now