Skip to content

Commit

Permalink
Remove running directory from docs
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb-johnson committed Sep 29, 2023
1 parent 8f08da6 commit 53fa9ed
Show file tree
Hide file tree
Showing 16 changed files with 7 additions and 44 deletions.
1 change: 0 additions & 1 deletion Dockerfile-notebook
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ RUN rm -r ./qs
WORKDIR /home/$NB_USER
USER $NB_UID
COPY --chown=$NB_UID:$NB_UID ./docs/getting_started/ ./serverless/getting_started/
COPY --chown=$NB_UID:$NB_UID ./docs/running/notebooks/ ./serverless/running/
COPY --chown=$NB_UID:$NB_UID ./docs/examples/examples/ ./serverless/examples/

ENV JUPYTER_ENABLE_LAB=no
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ For user convenience, this section assumes that users will deploy the infrastruc
1. Access the JupyterLab environment
Open `localhost:8888` in your web browser. The default token for the JupyterLab is `123`
1. Write your first example program
In the JupyterLab, create a new file `program.py` in the `serverless/running/source_files/` directory (Note: the directory is inside the containerized environment)
In the JupyterLab, create a new file `program.py` in the `serverless/getting_started/source_files/` directory (Note: the directory is inside the containerized environment)

Save [this example python code](https://qiskit-extensions.github.io/quantum-serverless/quickstart/index.html#id8).

Expand All @@ -97,8 +97,8 @@ For user convenience, this section assumes that users will deploy the infrastruc
That's all!
For more detailed examples and explanations refer to the [Guide](https://qiskit-extensions.github.io/quantum-serverless/index.html):
[Getting Started](https://qiskit-extensions.github.io/quantum-serverless/getting_started/index.html#),
[Deployment](https://qiskit-extensions.github.io/quantum-serverless/deployment/index.html),
[Running](https://qiskit-extensions.github.io/quantum-serverless/running/index.html#),
[Development](https://qiskit-extensions.github.io/quantum-serverless/development/index.html).
----------------------------------------------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions docs/getting_started/01_running_program.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"\n",
"### Writing the Program\n",
"\n",
"First, we need to write the program code and save it to a file called [program_1.py](./source_files/program_1.py). This program creates a two-qubit quantum circuit that prepares a Bell state, measures the result, and saves the measured probability distribution.\n",
"First, we need to write the program code and save it to a file called [program.py](./source_files/program.py). This program creates a two-qubit quantum circuit that prepares a Bell state, measures the result, and saves the measured probability distribution.\n",
"\n",
"The code for the program is shown below:\n",
"\n",
"```python\n",
"# source_files/program_1.py\n",
"# source_files/program.py\n",
"\n",
"from qiskit import QuantumCircuit\n",
"from qiskit.primitives import Sampler\n",
Expand Down Expand Up @@ -126,7 +126,7 @@
"\n",
"program = Program(\n",
" title=\"First program\",\n",
" entrypoint=\"program_1.py\",\n",
" entrypoint=\"program.py\",\n",
" working_dir=\"./source_files/\"\n",
")\n",
"\n",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from quantum_serverless import save_result

# all print statement will be available in job logs
print("Running program 1...")
print("Running program...")

# creating circuit
circuit = QuantumCircuit(2)
Expand All @@ -19,4 +19,4 @@
# saves results of program execution,
# which will be accessible by calling `.result()`
save_result(quasi_dists)
print("Completed running program 1.")
print("Completed running program.")
22 changes: 0 additions & 22 deletions docs/getting_started/source_files/program_1.py

This file was deleted.

10 changes: 0 additions & 10 deletions docs/running/index.rst

This file was deleted.

4 changes: 0 additions & 4 deletions docs/running/notebooks/index.rst

This file was deleted.

Empty file.

0 comments on commit 53fa9ed

Please sign in to comment.