# Package for classification

**URL:** <https://discuss.pennylane.ai/t/package-for-classification/395>\
**Category:** PennyLane Development\
**Created:** [May 8, 2020, 5:56pm UTC](https://discuss.pennylane.ai/t/package-for-classification/395 "2020-05-08T17:56:37Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Tom\_Bromley](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/tom_bromley/32/129_2.png) [@Tom\_Bromley](https://discuss.pennylane.ai/u/Tom_Bromley)\
**Post date:** [May 29, 2020, 12:15pm UTC](https://discuss.pennylane.ai/t/package-for-classification/395/11 "2020-05-29T12:15:14Z")

</div>

Great [PR](https://github.com/XanaduAI/pennylane/pull/642) @nvitucci! Thanks for the contribution 🚀

It would be great to keep going with a follow up addition. We’d like to suggest the following two ideas:

1. **Provide quantum-aware optimizers for the PyTorch and TensorFlow interfaces.** Currently, PennyLane offers a selection of [optimizers](https://pennylane.readthedocs.io/en/stable/introduction/optimizers.html) for the NumPy interface. Most of these optimizers, such as `AdamOptimizer` already have a similar version in PyTorch/TensorFlow. However, we also provide `QNGOptimizer`, `RotosolveOptimizer`, and `RotoselectOptimizer` that are _quantum-aware_ in the sense that they use information about the quantum circuit during optimization. It would be great to provide these optimizers for users interacting with the PyTorch and TensorFlow interfaces. There is already a discussion and a prototype [here](http://discuss.pennylane.ai/t/quantum-natural-gradient-descent/351) for a bit more context.

2. **Provide decompositions of qubit Hamiltonian matrices into linear combinations of Pauli matrices.** This is quite a useful feature for breaking down arbitrary measurements into ones realizable on hardware and should be relatively simple. There is already a PR [here](https://github.com/XanaduAI/pennylane/pull/627) looking at this but it looks like it’s lost momentum, so it would be good to start afresh with a new PR and get this feature across the line.

The first idea requires a bit of thinking and likely some back and forth of ideas and prototypes with us, so potentially we could kick-off both suggestions at the same time, doing the easier second one while thinking about the design for the first.

Thanks and happy to discuss more if not clear!  
Tom

---

_[View the full topic](https://discuss.pennylane.ai/t/package-for-classification/395)._
