10.3 Quantum neural networks in Qiskit: a commentary
In the previous section, we had a chance to explore in great depth the implementation and training of quantum neural networks in PennyLane. We won’t do an analogous discussion for Qiskit in such a level of detail, but we will at least give you a few ideas about how to get started should you ever need to use Qiskit in order to work with quantum neural networks.
PennyLane provides a very homogeneous and flexible experience. No matter if you’re training a simple binary classifier or a complex hybrid architecture like the ones we will study in the following chapter, it’s all done in the same way.
Qiskit, by contrast, provides a more ”structural” approach. It gives you a suite of classes that can be used to train different kinds of neural networks and that allow you to define your networks in different ways. It’s difficult to judge whether this is a better or worse approach; in the end, it’...