Skip to content

Commit

Permalink
deploy: a17a80a
Browse files Browse the repository at this point in the history
  • Loading branch information
yiiyama committed Jun 20, 2023
1 parent 3a74948 commit 6cbe5ac
Show file tree
Hide file tree
Showing 42 changed files with 786 additions and 855 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 726b8d8b09337f3d48bc5b6f19e5b605
config: d34d64d8969d3d17aaaa6739ed0872b8
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 25 additions & 25 deletions _sources/addition_on_ibmq.ipynb
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "003360c0",
"id": "f5154b55",
"metadata": {},
"source": [
"# 【参考】足し算を実機で行う\n",
Expand All @@ -19,7 +19,7 @@
{
"cell_type": "code",
"execution_count": 1,
"id": "c1c028f6",
"id": "fc54f2a8",
"metadata": {
"tags": [
"remove-output"
Expand Down Expand Up @@ -59,7 +59,7 @@
},
{
"cell_type": "markdown",
"id": "71149203",
"id": "a4f25147",
"metadata": {},
"source": [
"実習と同様、`'ibm-q/open/main'`のプロバイダでは(1, 1)の回路しか扱えないので、フェイクバックエンドを使います。"
Expand All @@ -68,7 +68,7 @@
{
"cell_type": "code",
"execution_count": 2,
"id": "c1169c5c",
"id": "11b90f4d",
"metadata": {
"tags": [
"remove-output",
Expand Down Expand Up @@ -107,7 +107,7 @@
{
"cell_type": "code",
"execution_count": 3,
"id": "71f3d4cd",
"id": "d76ed5d8",
"metadata": {
"tags": [
"remove-output"
Expand Down Expand Up @@ -145,7 +145,7 @@
},
{
"cell_type": "markdown",
"id": "d211d491",
"id": "928c4627",
"metadata": {},
"source": [
"実習と全く同じ`setup_addition`関数と、次のセルで効率化前の回路を返す`make_original_circuit`関数を定義します。"
Expand All @@ -154,7 +154,7 @@
{
"cell_type": "code",
"execution_count": 4,
"id": "acbf9a4b",
"id": "ee6832ce",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -216,7 +216,7 @@
},
{
"cell_type": "markdown",
"id": "72771fe7",
"id": "1d557443",
"metadata": {},
"source": [
"(4, 4)から(1, 1)までそれぞれオリジナルと効率化した回路の二通りを作り、全てリストにまとめてバックエンドに送ります。"
Expand All @@ -225,7 +225,7 @@
{
"cell_type": "code",
"execution_count": 5,
"id": "d770f1e5",
"id": "e6acb457",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -268,7 +268,7 @@
{
"cell_type": "code",
"execution_count": 6,
"id": "01b8c94f",
"id": "3248888a",
"metadata": {
"tags": [
"remove-input"
Expand All @@ -287,7 +287,7 @@
{
"cell_type": "code",
"execution_count": 7,
"id": "6cbc57da",
"id": "c23c3379",
"metadata": {
"tags": [
"remove-output",
Expand Down Expand Up @@ -339,7 +339,7 @@
{
"cell_type": "code",
"execution_count": 8,
"id": "058180bf",
"id": "d4b0bac6",
"metadata": {
"tags": [
"remove-input"
Expand All @@ -357,7 +357,7 @@
},
{
"cell_type": "markdown",
"id": "477afa37",
"id": "60d558ac",
"metadata": {},
"source": [
"ジョブが返ってきたら、正しい足し算を表しているものの割合を調べてみましょう。"
Expand All @@ -366,7 +366,7 @@
{
"cell_type": "code",
"execution_count": 9,
"id": "09d1b4d5",
"id": "78dde921",
"metadata": {
"tags": [
"remove-output"
Expand Down Expand Up @@ -417,7 +417,7 @@
},
{
"cell_type": "markdown",
"id": "14967d6a",
"id": "81dd0b37",
"metadata": {},
"source": [
"ちなみに、`ibm_kawasaki`というマシンで同じコードを走らせると、下のような結果が得られます。\n",
Expand Down Expand Up @@ -452,7 +452,7 @@
},
{
"cell_type": "markdown",
"id": "50cc2a7a",
"id": "8fcb34ed",
"metadata": {
"tags": [
"remove-input"
Expand All @@ -473,7 +473,7 @@
},
{
"cell_type": "markdown",
"id": "78142a37",
"id": "08a10e2c",
"metadata": {},
"source": [
"回路が均一にランダムに$0$から$2^{n_1 + n_2 + n_3} - 1$までの数を返す場合、レジスタ1と2のそれぞれの値の組み合わせに対して正しいレジスタ3の値が一つあるので、正答率は$2^{n_1 + n_2} / 2^{n_1 + n_2 + n_3} = 2^{-n_3}$となります。実機では、(4, 4)と(3, 3)でどちらの回路も正答率がほとんどこの値に近くなっています。(2, 2)では効率化回路で明らかにランダムでない結果が出ています。(1, 1)では両回路とも正答率8割です。\n",
Expand All @@ -483,7 +483,7 @@
},
{
"cell_type": "markdown",
"id": "211acb82",
"id": "0c24249a",
"metadata": {},
"source": [
"## Quantum Volume\n",
Expand All @@ -502,7 +502,7 @@
{
"cell_type": "code",
"execution_count": 10,
"id": "16547dbf",
"id": "7778237f",
"metadata": {
"tags": [
"remove-output",
Expand Down Expand Up @@ -533,7 +533,7 @@
{
"cell_type": "code",
"execution_count": 11,
"id": "44e6d0c9",
"id": "f94d1d09",
"metadata": {
"tags": [
"remove-output",
Expand Down Expand Up @@ -579,7 +579,7 @@
},
{
"cell_type": "markdown",
"id": "97d7271d",
"id": "8bb5dcd3",
"metadata": {},
"source": [
"QVから期待される正答率の序列にならないかもしれません。量子コンピュータという恐ろしく複雑な機械の性能を一つの数値で表すことの限界がここにあり、今のように単純な回路を実行する場合は、ケースバイケースで特定の量子ビットや特定のゲートのエラー率が結果に大きな影響を及ぼしたりするのです。\n",
Expand All @@ -590,7 +590,7 @@
{
"cell_type": "code",
"execution_count": 12,
"id": "79a9e264",
"id": "40a38b62",
"metadata": {
"tags": [
"remove-output",
Expand Down Expand Up @@ -623,7 +623,7 @@
},
{
"cell_type": "markdown",
"id": "01ff7e6c",
"id": "e005c4aa",
"metadata": {
"tags": [
"remove-output",
Expand Down Expand Up @@ -657,7 +657,7 @@
{
"cell_type": "code",
"execution_count": 13,
"id": "bc6df371",
"id": "569dd870",
"metadata": {
"tags": [
"raises-exception",
Expand Down Expand Up @@ -693,7 +693,7 @@
{
"cell_type": "code",
"execution_count": 14,
"id": "5b5449c9",
"id": "fbded632",
"metadata": {
"tags": [
"remove-output",
Expand Down

0 comments on commit 6cbe5ac

Please sign in to comment.