(3,2)-QRACのハミルトニアンを生成する機能を追加しました。 #10
Merged
+283
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
追加した機能
Teramura et al., arXiv (2023)で提案された(3,2,p)-QRACのハミルトニアンを生成する関数を追加しました。
基本的には、(3,1)-QRACの関数を作成する際のグラフ彩色を用いて、埋め込む位置を決定しています。
また、3つの変数を2つのqubitに埋め込むので、隣り合う番号のqubit(idx,idx+1)に演算子を配置しています。
なので、グラフ彩色の結果出てきた必要qubitの2倍を用意し、上記の方法で演算子の割り当てをおこなっています。