Skip to content

Commit

Permalink
some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yiiyama committed Apr 19, 2023
1 parent 8cb13e0 commit 5679d69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/ja/circuit_from_scratch.md
Expand Up @@ -199,6 +199,8 @@ circuit.mcry(theta, [i, j], k)

実は`statevector_expr`関数には回路オブジェクトを直接渡すこともできるので(内部でシミュレータを実行し状態ベクトルオブジェクトを取得する)、ここからはその機能を利用します。また、コード中登場する`amp_norm``phase_norm`は、表示される数式において振幅や位相の共通因子をくくりだすために設定されています。

各問題のコードセルには、ヒントとして回路が一部分だけ書かれています。残りの`circuit.?`の部分を埋めてみましょう。答えは一行とは限りません。また、同じ状態を作る量子回路は無数に存在するので、ヒントを消して独自の実装をしても構いません。

+++

### 問題1: 1量子ビット、相対位相付き
Expand Down

0 comments on commit 5679d69

Please sign in to comment.