0
$\begingroup$

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.

$\endgroup$
1
  • $\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 Bot
    Jun 17, 2022 at 5:59

1 Answer 1

0
$\begingroup$

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:

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.