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
19 stars 6 forks source link

farhi_neven_watle_ansatzの係数の説明を追加 #258

Closed forest1040 closed 10 months ago

forest1040 commented 1 year ago

circuit_visualize.ipynbのcreate_farhi_neven_watle_ansatz()に係数が違うことを追記しました。

create_farhi_neven_ansatz()とcreate_farhi_neven_watle_ansatz()の違いは、入力データをembedingする回路の係数です。
create_farhi_neven_ansatz()の場合は、量子回路のどのビット位置のインプットデータを埋め込む回転ゲートの係数も同じ値を使用します。
create_farhi_neven_watle_ansatz()の場合は、ビット位置によって係数を変化させます。
量子回路のビット位置が小さい側は係数式(y=x^2)を使用し、大きい側は係数式(y=2x-x^2)を使用します。
codecov[bot] commented 1 year ago

Codecov Report

Merging #258 (8ccf942) into main (e3e0da0) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #258   +/-   ##
=======================================
  Coverage   92.35%   92.35%           
=======================================
  Files          15       15           
  Lines        1086     1086           
  Branches      202      199    -3     
=======================================
  Hits         1003     1003           
  Misses         50       50           
  Partials       33       33           

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more