I have 2 Linear layers: nn.Linear(64, 10) and nn.Linear(5, 2). I want to add TwoLayerQNN between these 2 linear layers above. How can I set up properly? I saw this example but something is not explained.
1 Answer
$\begingroup$
$\endgroup$
TwoLayerQNN
is a Two Layer Quantum Neural Network consisting of a feature map, a ansatz, and an observable.
You need to use CircuitQNN
instead, where you can modify output_shape
parameters
Take a look at these two example, hope it helps you: