martin-knudsen / masterThesis

Source code for my master's thesis: "Neural Networks on Continuous-Variable Quantum Computers" using the Pennylane Framework from Xanadu.
0 stars 0 forks source link

Linear ODE issue #2

Open aigerimhatake opened 2 years ago

aigerimhatake commented 2 years ago

When I run the code for linear ODE

inits = torch.tensor(cvqnn_layers_all(L, M, seed=0), dtype=torch.float64)

Shows an error: len() of unsized object

How can I fix it?

martin-knudsen commented 2 years ago

This code has not been updated since my submission in October 2020. Specifically, I think the cvqnn_layers_all method is obsolete now. I made it work by installing old versions of the packages valid for October 2020: