Hello, i use this qnode on a hybrid keras model
@qml.qnode(dev, interface="tf", grad_method="backprop")
def qnode(inputs, weights):
for i in range(blocks):
qml.templates.AngleEmbedding(inputs, wires=range(n_qubits))
qml.templates.StronglyEntanglingLayers(weights[i], wires=range(n_qubits))
return [qml.expval(qml.PauliZ(i)) for i in range(n_qubits)]
Is there a limitation on the number n_qubits
? for example when i set it to 20 the kernel dies, Is this internal or due to insufficient memory of my pc? Thanks!
(p.s. would it make sense to use two qnodes with 10 qubits in parallel? )