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.
-
$\begingroup$ Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. $\endgroup$– Community BotJun 17 at 5:59
1 Answer
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: