Qulacs-Osaka / scikit-qulacs

scikit-qulacs is a library for quantum neural network. This library is based on qulacs and named after scikit-learn.
https://qulacs-osaka.github.io/scikit-qulacs/index.html
MIT License
21 stars 6 forks source link

Share learning parameters #166

Closed ikanago closed 2 years ago

ikanago commented 2 years ago

close #141 ひとつの _LearningParameter を介して ParametricQuantumCircuit 内の複数のパラメータを制御できるようになりました.

@WATLE backprop の部分は,各 _LearningParameter が共有している ParametricQuantumCircuit の backprop を足し合わせるように実装したんですが,これで問題なさそうか確認お願いします.

WATLE commented 2 years ago

あまり詳しくは見れていませんが、 backpropは足し合わせる実装で正解です。

ikanago commented 2 years ago

了解です! とりあえず issue にしておきました: #169