Skip to content

289 add backprop subbranch#307

Open
Glacialte wants to merge 41 commits intomainfrom
289-add-backprop-subbranch
Open

289 add backprop subbranch#307
Glacialte wants to merge 41 commits intomainfrom
289-add-backprop-subbranch

Conversation

@Glacialte
Copy link
Contributor

  • 誤差逆伝搬の実装+テスト追加
  • PauliOperator::get_expectation_valueのテスト追加
  • Operator::get_expectation_values追加+テスト追加

@Glacialte Glacialte requested review from KowerKoint and gandalfr-KY and removed request for gandalfr-KY February 10, 2026 04:08
@Glacialte
Copy link
Contributor Author

Glacialte commented Mar 6, 2026

Closed #313 #289

@gandalfr-KY
Copy link
Contributor

あんまり自信ないんですけど入力の演算子がエルミートであることを仮定してる気がします?
Gemini 曰く求める式は次の通りで,演算子Oがエルミートなら2 * Re(..) となっていて正しいですが,非エルミートの場合複素数が返りそうです.
image
非エルミートな場合の対応は大変(+需要があるか不明)なので今後のタスクにするとして,とりあえずエルミートかどうかのチェックを入れるのがよいのではないでしょうか?

@gandalfr-KY
Copy link
Contributor

もし実装するなら演算子を実部と虚部に分けて2回backpropを呼ぶか,あるいは内部で3本のベクトルを更新することでできそうですね.

@gandalfr-KY
Copy link
Contributor

また,関数名がbackpropでよいのかについては考えたいです.何が返るかの情報がなく,計算手法のみが伝わる名前になっているのが気になってます

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants