qml icon indicating copy to clipboard operation
qml copied to clipboard

Update cost functions to support more flexible optimizer functionality.

Open albi3ro opened this issue 4 years ago • 0 comments

Since PennyLane PR #959 optimizers can accept cost functions with non-trainable data, multiple trainable parameters, and keywords. Our demos should reflect this flexibility, instead of using lambda functions and other workarounds.

albi3ro avatar Jan 15 '21 20:01 albi3ro