Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(3,2)-QRACのハミルトニアンを生成する機能を追加しました。 #10

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

Jacomichi
Copy link
Collaborator

@Jacomichi Jacomichi commented Jul 14, 2023

追加した機能

Teramura et al., arXiv (2023)で提案された(3,2,p)-QRACのハミルトニアンを生成する関数を追加しました。
基本的には、(3,1)-QRACの関数を作成する際のグラフ彩色を用いて、埋め込む位置を決定しています。
また、3つの変数を2つのqubitに埋め込むので、隣り合う番号のqubit(idx,idx+1)に演算子を配置しています。
なので、グラフ彩色の結果出てきた必要qubitの2倍を用意し、上記の方法で演算子の割り当てをおこなっています。

$X',Y'Z'$に関しては、テストを入れています。

@Jacomichi Jacomichi requested a review from yuyamashiro July 14, 2023 07:54
@yuyamashiro yuyamashiro merged commit 4241724 into main Jul 14, 2023
@yuyamashiro yuyamashiro deleted the feature/32-qrac branch July 14, 2023 08:34
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