Skip to content

Commit

Permalink
deploy: 3b40a3e
Browse files Browse the repository at this point in the history
  • Loading branch information
kterashi committed Feb 9, 2024
1 parent eca3e19 commit be136b0
Show file tree
Hide file tree
Showing 41 changed files with 751 additions and 751 deletions.
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.
Binary file not shown.
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.
50 changes: 25 additions & 25 deletions _sources/addition_on_ibmq.ipynb
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "46ca1530",
"id": "37c5ef79",
"metadata": {},
"source": [
"# 【参考】足し算を実機で行う\n",
Expand All @@ -19,7 +19,7 @@
{
"cell_type": "code",
"execution_count": 1,
"id": "945a26ec",
"id": "eb0f7157",
"metadata": {
"tags": [
"remove-output"
Expand Down Expand Up @@ -59,7 +59,7 @@
},
{
"cell_type": "markdown",
"id": "3455a1c9",
"id": "67f1391b",
"metadata": {},
"source": [
"実習と同様、`'ibm-q/open/main'`のプロバイダでは(1, 1)の回路しか扱えないので、フェイクバックエンドを使います。"
Expand All @@ -68,7 +68,7 @@
{
"cell_type": "code",
"execution_count": 2,
"id": "1612b1d9",
"id": "c39c8798",
"metadata": {
"tags": [
"remove-output",
Expand Down Expand Up @@ -107,7 +107,7 @@
{
"cell_type": "code",
"execution_count": 3,
"id": "6e16d130",
"id": "e952cfda",
"metadata": {
"tags": [
"remove-output"
Expand Down Expand Up @@ -145,7 +145,7 @@
},
{
"cell_type": "markdown",
"id": "01aab7ec",
"id": "dbc59c78",
"metadata": {},
"source": [
"実習と全く同じ`setup_addition`関数と、次のセルで効率化前の回路を返す`make_original_circuit`関数を定義します。"
Expand All @@ -154,7 +154,7 @@
{
"cell_type": "code",
"execution_count": 4,
"id": "02c0c89c",
"id": "084719d5",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -216,7 +216,7 @@
},
{
"cell_type": "markdown",
"id": "6c3254c6",
"id": "6ea88a5e",
"metadata": {},
"source": [
"(4, 4)から(1, 1)までそれぞれオリジナルと効率化した回路の二通りを作り、全てリストにまとめてバックエンドに送ります。"
Expand All @@ -225,7 +225,7 @@
{
"cell_type": "code",
"execution_count": 5,
"id": "1a12bc8d",
"id": "621b549f",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -268,7 +268,7 @@
{
"cell_type": "code",
"execution_count": 6,
"id": "867156e6",
"id": "63465337",
"metadata": {
"tags": [
"remove-input"
Expand All @@ -287,7 +287,7 @@
{
"cell_type": "code",
"execution_count": 7,
"id": "e76b222a",
"id": "d064832e",
"metadata": {
"tags": [
"remove-output",
Expand Down Expand Up @@ -339,7 +339,7 @@
{
"cell_type": "code",
"execution_count": 8,
"id": "6f06e2e8",
"id": "7f468607",
"metadata": {
"tags": [
"remove-input"
Expand All @@ -357,7 +357,7 @@
},
{
"cell_type": "markdown",
"id": "79f222d7",
"id": "2fd163dc",
"metadata": {},
"source": [
"ジョブが返ってきたら、正しい足し算を表しているものの割合を調べてみましょう。"
Expand All @@ -366,7 +366,7 @@
{
"cell_type": "code",
"execution_count": 9,
"id": "aab21eca",
"id": "4c5088d4",
"metadata": {
"tags": [
"remove-output"
Expand Down Expand Up @@ -417,7 +417,7 @@
},
{
"cell_type": "markdown",
"id": "bcbc3c74",
"id": "2688f994",
"metadata": {},
"source": [
"ちなみに、`ibm_kawasaki`というマシンで同じコードを走らせると、下のような結果が得られます。\n",
Expand Down Expand Up @@ -452,7 +452,7 @@
},
{
"cell_type": "markdown",
"id": "f027260b",
"id": "16c3c4db",
"metadata": {
"tags": [
"remove-input"
Expand All @@ -473,7 +473,7 @@
},
{
"cell_type": "markdown",
"id": "1c21be9f",
"id": "40a95288",
"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": "15210dd3",
"id": "632a572a",
"metadata": {},
"source": [
"## Quantum Volume\n",
Expand All @@ -502,7 +502,7 @@
{
"cell_type": "code",
"execution_count": 10,
"id": "e65b800e",
"id": "9712a223",
"metadata": {
"tags": [
"remove-output",
Expand Down Expand Up @@ -533,7 +533,7 @@
{
"cell_type": "code",
"execution_count": 11,
"id": "2879dd6c",
"id": "ae222ec4",
"metadata": {
"tags": [
"remove-output",
Expand Down Expand Up @@ -579,7 +579,7 @@
},
{
"cell_type": "markdown",
"id": "571d1bcb",
"id": "ad41c7c8",
"metadata": {},
"source": [
"QVから期待される正答率の序列にならないかもしれません。量子コンピュータという恐ろしく複雑な機械の性能を一つの数値で表すことの限界がここにあり、今のように単純な回路を実行する場合は、ケースバイケースで特定の量子ビットや特定のゲートのエラー率が結果に大きな影響を及ぼしたりするのです。\n",
Expand All @@ -590,7 +590,7 @@
{
"cell_type": "code",
"execution_count": 12,
"id": "de6669d3",
"id": "9a83e11e",
"metadata": {
"tags": [
"remove-output",
Expand Down Expand Up @@ -623,7 +623,7 @@
},
{
"cell_type": "markdown",
"id": "7eb61bcf",
"id": "04bb3381",
"metadata": {
"tags": [
"remove-output",
Expand Down Expand Up @@ -657,7 +657,7 @@
{
"cell_type": "code",
"execution_count": 13,
"id": "4c23b111",
"id": "999ce3d5",
"metadata": {
"tags": [
"raises-exception",
Expand Down Expand Up @@ -693,7 +693,7 @@
{
"cell_type": "code",
"execution_count": 14,
"id": "95c375f2",
"id": "af1784c5",
"metadata": {
"tags": [
"remove-output",
Expand Down

0 comments on commit be136b0

Please sign in to comment.