From f67d3d9b4dcc0156e9cf41a416a7844141115b43 Mon Sep 17 00:00:00 2001 From: Pradnya Khalate Date: Wed, 11 Dec 2024 13:11:54 -0800 Subject: [PATCH] * Fix for invalid notebook - hadamard_test.ipynb * Remove explicit setting of target (default target is `nvidia` if GPU(s) present) Signed-off-by: Pradnya Khalate --- .../digitized_counterdiabatic_qaoa.ipynb | 18 +++++++++--------- .../applications/python/hadamard_test.ipynb | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/sphinx/applications/python/digitized_counterdiabatic_qaoa.ipynb b/docs/sphinx/applications/python/digitized_counterdiabatic_qaoa.ipynb index 0ac3df0ca5..4e2e84a13b 100644 --- a/docs/sphinx/applications/python/digitized_counterdiabatic_qaoa.ipynb +++ b/docs/sphinx/applications/python/digitized_counterdiabatic_qaoa.ipynb @@ -52,8 +52,8 @@ "from cudaq import spin\n", "import numpy as np\n", "\n", - "cudaq.set_target('nvidia')\n", - "# cudaq.set_target('qpp-cpu') # Uncomment this line if no GPUs are available" + "# cudaq.set_target('nvidia') # Uncomment this line if GPUs are available\n", + "cudaq.set_target('qpp-cpu') " ] }, { @@ -125,7 +125,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -156,7 +156,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -214,7 +214,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -252,7 +252,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -293,7 +293,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -334,7 +334,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -378,7 +378,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": null, "metadata": {}, "outputs": [ { diff --git a/docs/sphinx/applications/python/hadamard_test.ipynb b/docs/sphinx/applications/python/hadamard_test.ipynb index a643f59ba3..1d1f781d59 100644 --- a/docs/sphinx/applications/python/hadamard_test.ipynb +++ b/docs/sphinx/applications/python/hadamard_test.ipynb @@ -37,7 +37,7 @@ "![Htest2](./images/htestfactored.png)\n", "\n", "By preparing this circuit, and repeatedly measuring the ancilla qubit, we estimate the expectation value as $$P(0)-P(1) = Re \\bra{\\psi} O \\ket{\\phi}.$$\n", - "\, + "\n", "\n", "The following sections demonstrate how this can be performed in CUDA-Q." ]