qml.QNSPSAOptimizer() giving AttributeError: 'function' object has no attribute 'construct'

Hi @Amandeep ,

Your error seems very different to the one in the thread that you shared. You can try running the code shared by Isaac but note that it’s a different workflow from what you have been working with so far.

Of course, if this is what you needed then that’s great!