Skip to content

Commit

Permalink
fix some tutorials (#473)
Browse files Browse the repository at this point in the history
Signed-off-by: Akihiko Kuroda <[email protected]>
  • Loading branch information
akihikokuroda authored Apr 28, 2023
1 parent e0eb819 commit 4b0303e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs/tutorials/01_quantum_serverless.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"\n",
"As a second step we need to know how to transform our local function into remote one. \n",
"\n",
"In order to do that you need to annotate function with `run_qiskit_remote` decorator. \n",
"In order to do that you need to annotate function with `distribute_task` decorator. \n",
"This will turn your function into remote executable. \n",
"\n",
"![functions diagram](https://raw.githubusercontent.com/Qiskit-Extensions/quantum-serverless/main/docs/tutorials/images/diagrams_function.png)\n",
Expand Down Expand Up @@ -284,13 +284,13 @@
"from quantum_serverless import Program, GatewayProvider\n",
"\n",
"gateway_provider = GatewayProvider(\n",
" username=\"john\",\n",
" username=\"user\",\n",
" password=\"password123\",\n",
" host=\"http://localhost:8000\",\n",
" host=\"http://gateway:8000\",\n",
")\n",
"\n",
"program = Program(\n",
" name=\"brnchmark_program\",\n",
" title=\"brnchmark_program\",\n",
" entrypoint=\"benchmark.py\",\n",
" working_dir=\"./source_files/\",\n",
" description=\"Benchmark program\"\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/07_benchmark_program.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"gateway_provider = GatewayProvider(\n",
" username=\"user\",\n",
" password=\"password123\",\n",
" host=\"http://localhost:8000\",\n",
" host=\"http://gateway:8000\",\n",
")\n",
"serverless = QuantumServerless(gateway_provider)\n",
"serverless"
Expand Down
1 change: 1 addition & 0 deletions infrastructure/docker/Dockerfile-notebook
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ USER $NB_UID

COPY --chown=$NB_UID:$NB_UID ./client ./qs
RUN cd ./qs && pip install .
RUN pip install ipywidgets
RUN cd ../
RUN rm -r ./qs

Expand Down

0 comments on commit 4b0303e

Please sign in to comment.