Skip to content

Commit

Permalink
deploy: 9de0a3a
Browse files Browse the repository at this point in the history
  • Loading branch information
vvssttkk committed Sep 19, 2023
1 parent 25808ec commit a75565a
Show file tree
Hide file tree
Showing 58 changed files with 611 additions and 644 deletions.
Binary file modified _images/copt_1_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/deutschs_algorithm_17_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/dwave_19_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/eigenvals_17_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/eigenvals_19_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/gradients_13_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/gradients_21_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/gradients_23_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/gradients_3_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/hybridsvm_24_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/hybridsvm_6_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/qiskit_13_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/vqc_10_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/vqc_18_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/vqe_9_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _sources/book/dwave/ru/annealing_paper_1998.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "53655dca",
"id": "b53c293d",
"metadata": {},
"source": [
"(annealing_paper_1998)=\n",
Expand Down
46 changes: 23 additions & 23 deletions _sources/book/dwave/ru/dwave.ipynb

Large diffs are not rendered by default.

78 changes: 39 additions & 39 deletions _sources/book/grads/ru/gradients.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _sources/book/grads/ru/hogradients.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "b2af3ed9",
"id": "2fd2ca11",
"metadata": {},
"source": [
"(hogradients)=\n",
Expand Down
10 changes: 5 additions & 5 deletions _sources/book/linalg/ru/bra-ket.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "29d5d725",
"id": "ffb96d8f",
"metadata": {},
"source": [
"(bra-ket)=\n",
Expand Down Expand Up @@ -93,7 +93,7 @@
{
"cell_type": "code",
"execution_count": 1,
"id": "acf97a42",
"id": "f77051fa",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -122,7 +122,7 @@
},
{
"cell_type": "markdown",
"id": "fb53f0ff",
"id": "1f50d2ed",
"metadata": {},
"source": [
"Также в `Python` для многих операций есть соответствующие методы вместо функций и их сокращения, например `U.transpose()` -- то же самое, что `U.T`, а `U.conjugate()` -- `U.conj()`.\n",
Expand Down Expand Up @@ -170,7 +170,7 @@
{
"cell_type": "code",
"execution_count": 2,
"id": "8a43acc3",
"id": "7e7ebb77",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -217,7 +217,7 @@
},
{
"cell_type": "markdown",
"id": "475244a3",
"id": "1e9dd74d",
"metadata": {},
"source": [
"### Пример: оператор-проектор\n",
Expand Down
82 changes: 41 additions & 41 deletions _sources/book/linalg/ru/numpy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "6ae03da8",
"id": "7a3cae0b",
"metadata": {},
"source": [
"(numpy)=\n",
Expand All @@ -22,7 +22,7 @@
{
"cell_type": "code",
"execution_count": 1,
"id": "8ded1380",
"id": "0b7b9326",
"metadata": {},
"outputs": [
{
Expand All @@ -35,10 +35,10 @@
"c = array([[1., 0., 0.],\n",
" [0., 1., 0.],\n",
" [0., 0., 1.]])\n",
"q = array([[0.68887712, 0.29766186, 0.20488799, 0.82606581, 0.19215539,\n",
" 0.80669731, 0.04749796, 0.84376436, 0.98234412, 0.26026244,\n",
" 0.06682318, 0.20963391, 0.60407885, 0.73916965, 0.04105598,\n",
" 0.7833357 , 0.35035853, 0.25628743, 0.62272382, 0.34212916]])\n"
"q = array([[0.82124374, 0.56826072, 0.99477624, 0.12746468, 0.93610918,\n",
" 0.41240917, 0.22420673, 0.37370812, 0.9157604 , 0.75456824,\n",
" 0.94885959, 0.88902097, 0.90143191, 0.59639812, 0.33652376,\n",
" 0.39476417, 0.70329667, 0.67054351, 0.73168138, 0.37639192]])\n"
]
}
],
Expand All @@ -60,7 +60,7 @@
},
{
"cell_type": "markdown",
"id": "c89b355b",
"id": "3b6d5ecd",
"metadata": {},
"source": [
"## Арифметические операции\n",
Expand All @@ -70,7 +70,7 @@
{
"cell_type": "code",
"execution_count": 2,
"id": "5eb7a0c0",
"id": "6a3c2643",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -99,7 +99,7 @@
},
{
"cell_type": "markdown",
"id": "38aee397",
"id": "e9e43a06",
"metadata": {},
"source": [
"## Indexing, slicing and sugar\n",
Expand All @@ -110,7 +110,7 @@
{
"cell_type": "code",
"execution_count": 3,
"id": "ca9d2bd9",
"id": "b96fc961",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -166,7 +166,7 @@
},
{
"cell_type": "markdown",
"id": "5bfa520f",
"id": "6cc0f744",
"metadata": {},
"source": [
"Для работы с размерностями часто используются еще три конструкции: `None`, `...` (ellipsis, многоточие) и `:` (двоеточие)."
Expand All @@ -175,7 +175,7 @@
{
"cell_type": "code",
"execution_count": 4,
"id": "bf6ebc8a",
"id": "e6dc8c3a",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -226,7 +226,7 @@
},
{
"cell_type": "markdown",
"id": "fb7a6c80",
"id": "2f10963d",
"metadata": {},
"source": [
"В целом в `NumPy` очень здорово реализованы методы `__getitem__`/`__setitem__`."
Expand All @@ -235,7 +235,7 @@
{
"cell_type": "code",
"execution_count": 5,
"id": "5441f334",
"id": "1b215cc9",
"metadata": {},
"outputs": [
{
Expand All @@ -258,7 +258,7 @@
},
{
"cell_type": "markdown",
"id": "a3c70bca",
"id": "0b8af093",
"metadata": {},
"source": [
"Кроме того, мы можем делать индексацию по заданному условию с помощью `np.where`."
Expand All @@ -267,7 +267,7 @@
{
"cell_type": "code",
"execution_count": 6,
"id": "e41d5589",
"id": "2ccab881",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -300,7 +300,7 @@
},
{
"cell_type": "markdown",
"id": "f0803157",
"id": "050de9b6",
"metadata": {},
"source": [
"## Broadcasting\n",
Expand All @@ -311,7 +311,7 @@
{
"cell_type": "code",
"execution_count": 7,
"id": "d4ef5edb",
"id": "8b1949f3",
"metadata": {},
"outputs": [
{
Expand All @@ -331,7 +331,7 @@
},
{
"cell_type": "markdown",
"id": "3b07ff84",
"id": "68fa462e",
"metadata": {},
"source": [
"С точки зрения математики, ничего интересного тут не происходит: мы подразумевали умножение всего вектора на скаляр. Однако матричные операции в numpy справляются и с менее очевидными случаями, например, при сложении или вычитании вектора и скаляра:"
Expand All @@ -340,7 +340,7 @@
{
"cell_type": "code",
"execution_count": 8,
"id": "8f709882",
"id": "66301a87",
"metadata": {},
"outputs": [
{
Expand All @@ -360,7 +360,7 @@
},
{
"cell_type": "markdown",
"id": "cf70c8aa",
"id": "37126db5",
"metadata": {},
"source": [
"В numpy приняты следующие правила работы с массивами разного размера:\n",
Expand All @@ -386,7 +386,7 @@
{
"cell_type": "code",
"execution_count": 9,
"id": "c444ff2b",
"id": "5227debf",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -416,7 +416,7 @@
},
{
"cell_type": "markdown",
"id": "ba7a65c9",
"id": "33c6c35a",
"metadata": {},
"source": [
"Из-за этого для сравнения массивов с типом float используют `np.allclose`."
Expand All @@ -425,7 +425,7 @@
{
"cell_type": "code",
"execution_count": 10,
"id": "07b294d9",
"id": "fb506f92",
"metadata": {},
"outputs": [
{
Expand All @@ -444,7 +444,7 @@
},
{
"cell_type": "markdown",
"id": "521f6ad7",
"id": "faf7b8cf",
"metadata": {},
"source": [
"## NumPy и линейная алгебра\n",
Expand All @@ -455,7 +455,7 @@
{
"cell_type": "code",
"execution_count": 11,
"id": "714e9096",
"id": "8f10ad57",
"metadata": {},
"outputs": [
{
Expand All @@ -467,15 +467,15 @@
"np.eye(3, k=-1, dtype=int) = array([[0, 0, 0],\n",
" [1, 0, 0],\n",
" [0, 1, 0]])\n",
"np.random.beta(1, 2) = 0.4045211768732308\n",
"np.random.randint(1, 5, (2, 3)) = array([[2, 4, 4],\n",
" [4, 3, 4]])\n",
"a = array([[1, 2, 3],\n",
" [3, 3, 2],\n",
" [4, 2, 2]])\n",
"np.random.beta(1, 2) = 0.22371356284354812\n",
"np.random.randint(1, 5, (2, 3)) = array([[1, 4, 2],\n",
" [4, 3, 2]])\n",
"a = array([[2, 2, 3],\n",
" [2, 3, 1],\n",
" [4, 4, 3]])\n",
"a = array([[4, 2, 3],\n",
" [3, 4, 2],\n",
" [4, 2, 4]])\n",
" [2, 4, 1],\n",
" [4, 4, 4]])\n",
"np.diag(a) = array([4, 4, 4])\n"
]
}
Expand Down Expand Up @@ -503,7 +503,7 @@
},
{
"cell_type": "markdown",
"id": "adb56922",
"id": "1f7c9053",
"metadata": {},
"source": [
"### Решение систем линейных уравнений\n",
Expand All @@ -514,7 +514,7 @@
{
"cell_type": "code",
"execution_count": 12,
"id": "76922da1",
"id": "a8429a04",
"metadata": {},
"outputs": [
{
Expand All @@ -534,7 +534,7 @@
},
{
"cell_type": "markdown",
"id": "7ac6a550",
"id": "676ae82c",
"metadata": {},
"source": [
"### Обращение матриц\n",
Expand All @@ -545,7 +545,7 @@
{
"cell_type": "code",
"execution_count": 13,
"id": "e3eef2a1",
"id": "a3a60e6c",
"metadata": {},
"outputs": [
{
Expand All @@ -565,7 +565,7 @@
},
{
"cell_type": "markdown",
"id": "3592250f",
"id": "b21764ae",
"metadata": {},
"source": [
"### Собственные вектора и числа\n",
Expand All @@ -576,7 +576,7 @@
{
"cell_type": "code",
"execution_count": 14,
"id": "a02b7448",
"id": "3b9c9721",
"metadata": {},
"outputs": [
{
Expand All @@ -595,7 +595,7 @@
},
{
"cell_type": "markdown",
"id": "34e22e76",
"id": "b0d23220",
"metadata": {},
"source": [
"## Мы вкратце рассмотрели\n",
Expand Down
2 changes: 1 addition & 1 deletion _sources/book/ml/ru/ml_l1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "4698e93f",
"id": "2c924457",
"metadata": {},
"source": [
"(mll1)=\n",
Expand Down
40 changes: 20 additions & 20 deletions _sources/book/problems/ru/copt.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit a75565a

Please sign in to comment.