0
0

More than 3 years have passed since last update.

量子コンパイラを作る。 その3

Posted at

概要

量子コンパイラを作る。

コマンド リファレンス

make

回路を作る。量子ビットを指定する。
inputが2つで、outputが2つ、なら4。make 4

in

inputを作る。
0,1,2がinputならば、in 0 2

out

outputを作る。
3,4,5がoutputならば、out 3 5

xor

xorを作る。
0,1が入力で、3が出力ならば、xor 0 1 2

and

andを作る。
0,1が入力で、3が出力ならば、and 0 1 2

or

orを作る。
0,1が入力で、3が出力ならば、or 0 1 2

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0