-
Notifications
You must be signed in to change notification settings - Fork 6
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
add Cirq backend #83
base: main
Are you sure you want to change the base?
add Cirq backend #83
Conversation
* Add Docker of cuStatevector version (WIP) * Small fixes * update Dockerfile * Now use qsim as the backend. Looks like cuquantum is too primitive at the moment and cannot install outside of conda. * WIP: cannot install cuQuantum at the moment * . * a small fix and now cuquantum builds. * Cleanups. * qsim_nvidia -> cirq * fix cuQuantum download url * add pycall for gem * move * . * avoid the following error: UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128) * test circuit * . * Update qni-cirqbridge. * qsim GPU support requires to build from the source * Updated cirqbridge. qsimcirq now runs on the GPU. * Remove empty circuits. * . * . * rename to cirq to cirq_backend * Solve conflicts when merging from upstream * Solve conflicts when merging from upstream * back to my backend. * . * backout to my cirqbridge. * . * Impliment |0>, |1> initializations and H gate. Co-authored-by: Yasuhito Takamiya <[email protected]>
Cirq → Ruby へ状態ベクトルを渡すCirq バックエンドで計算した状態ベクトルを Ruby に渡すには、次のフォーマットの配列を返す必要があります。 # 振幅の[実部,虚部] の Array
[[0.42678, -0.17678],[0.17678, -0.07322],[0.17678, 0.42678],[0.07322, 0.17678],[-0.42678, 0.17678],[-0.17678, 0.07322],[-0.17678, -0.42678],[-0.07322, -0.17678]] たとえば、3 量子ビットの場合には振幅は 8 個なので、上のように Cirq バックエンドに渡される どこで返すか
Lines 99 to 103 in 7c5350d
ちなみにこの qni/apps/www/app/controllers/backend_controller.rb Lines 15 to 17 in 7c5350d
これは show.json.jbuilder の中で JSON 形式に変換されます。
|
TODO * more debugging. * blochVectors is not implimented yet. * native GPU (cuStatevec) support.
* remove unnecessary counters
No description provided.