Skip to content

Commit

Permalink
Merge branch 'dev' into hotfix_pip_install
Browse files Browse the repository at this point in the history
  • Loading branch information
KilianPoirier committed Feb 27, 2024
2 parents e07a2c3 + 0eee27b commit dda5917
Show file tree
Hide file tree
Showing 39 changed files with 1,286 additions and 3,355 deletions.
407 changes: 181 additions & 226 deletions examples/01_workflows_example.ipynb

Large diffs are not rendered by default.

25 changes: 16 additions & 9 deletions examples/02_simulators_comparison.ipynb

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions examples/04_qaoa_variational_parameters.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@
"source": [
"For instance, for a depth-2 circuit the corresponding unitary operator would then become:\n",
"\n",
"\\begin{multline}\n",
"U(\\beta ,\\gamma ,\\Gamma )=exp(i\\sum_j\\beta^{(2)}_jX_j)exp(−i\\sum_{j∈s}\\gamma^{(2)}_jh_jZ_j− \\\\ (i/2)\\sum_{j,k∈\\Pi}\\Gamma^{(2)}_{jk}g_{jk}Z_jZ_k)exp(i\\sum_j\\beta^{(1)}_jX_j) \\\\ exp(−i\\sum_{j∈s}\\gamma^{(1)}_jh_jZ_j−(i/2)\\sum_{j,k∈\\Pi}\\Gamma^{(1)}_{jk}g_{jk}Z_jZ_k)\n",
"\\end{multline}"
"\\begin{align*}\n",
"U(\\beta ,\\gamma ,\\Gamma )=&\\text{exp}{\\Big(i\\sum_j\\beta^{(2)}_jX_j\\Big)}\\cdot \\text{exp}{\\Bigg(−i\\sum_{j∈s}\\gamma^{(2)}_jh_jZ_j− (i/2)\\sum_{j,k∈\\Pi}\\Gamma^{(2)}_{jk}g_{jk}Z_jZ_k\\Bigg)} \\\\ &\\qquad\\qquad\\qquad\\cdot\\text{exp}{\\Big(i\\sum_j\\beta^{(1)}_jX_j\\Big)}\\cdot\\text{exp}{\\Bigg(−i\\sum_{j∈s}\\gamma^{(1)}_jh_jZ_j−(i/2)\\sum_{j,k∈\\Pi}\\Gamma^{(1)}_{jk}g_{jk}Z_jZ_k\\Bigg)}\n",
"\\end{align*}"
]
},
{
Expand Down Expand Up @@ -254,8 +254,8 @@
"Standard Parameterisation:\n",
"\tp: 1\n",
"Variational Parameters:\n",
"\tbetas: [0.67825497]\n",
"\tgammas: [1.33848011]"
"\tbetas: [0.76515737]\n",
"\tgammas: [2.96213888]"
]
},
"execution_count": 4,
Expand Down Expand Up @@ -309,10 +309,10 @@
"Extended Parameterisation:\n",
"\tp: 1\n",
"Parameters:\n",
"\tbetas_singles: [[1.93258376 1.75922895 2.027917 ]]\n",
"\tbetas_singles: [[2.95554443 1.63009578 2.5532 ]]\n",
"\tbetas_pairs: []\n",
"\tgammas_singles: [[0.79981656]]\n",
"\tgammas_pairs: [[1.25608449 2.33059942]]"
"\tgammas_singles: [[2.19785279]]\n",
"\tgammas_pairs: [[0.92556918 1.88298698]]"
]
},
"execution_count": 5,
Expand Down Expand Up @@ -687,9 +687,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "fix_qiskit_and_deprecations",
"language": "python",
"name": "oq_reviews"
"name": "fix_qiskit_and_deprecations"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -701,7 +701,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.6"
"version": "3.10.13"
},
"vscode": {
"interpreter": {
Expand Down
56 changes: 33 additions & 23 deletions examples/05_advanced_parameterization.ipynb

Large diffs are not rendered by default.

42 changes: 31 additions & 11 deletions examples/06_fast_qaoa_simulator.ipynb

Large diffs are not rendered by default.

34 changes: 21 additions & 13 deletions examples/07_cost_landscapes_w_manual_mode.ipynb

Large diffs are not rendered by default.

1,057 changes: 529 additions & 528 deletions examples/08_results_example.ipynb

Large diffs are not rendered by default.

135 changes: 79 additions & 56 deletions examples/10_workflows_on_Amazon_braket.ipynb

Large diffs are not rendered by default.

106 changes: 83 additions & 23 deletions examples/11_Mixer_example.ipynb

Large diffs are not rendered by default.

1,469 changes: 94 additions & 1,375 deletions examples/12_testing_azure.ipynb

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions examples/13_optimizers.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@
}
],
"source": [
"q.result.plot_cost()"
"fig, ax = q.result.plot_cost()"
]
},
{
Expand Down
Loading

0 comments on commit dda5917

Please sign in to comment.