Closed rdisipio closed 3 years ago
Hello! I have tried to reproduce this issue but I haven't had any problems using CircuitQNNs with dense output, it works fine for me. Could you please provide the full code you used to get this error? Thanks!
@rdisipio Could please try to reproduce the issue with the recent changes? If it is still in place, please report more info as @ElePT requested. Thanks.
@rdisipio Closing this issue as non-reproducible. You can re-open the issue if you still have problems. Thanks.
Information
What is the current behavior?
I would like to use a
CircuitQNN
as an intermediate layer in a larger neural network, but I would like to treat its output as a dense N-dim vector instead of a binary single output node as presented in the examples. I get the following error:Steps to reproduce the problem
What is the expected behavior?
Setting
n_qubits = 4
I have 16 different output states. If I print out the probabilities I see e.g. this:Suggested solutions
Not sure if the code is correct, but perhaps adding an example to the tutorials would clarify the matter.