Skip to content

Commit b4cd439

Browse files
Merge branch 'Qiskit:main' into main
2 parents c5c83c4 + c03c8cf commit b4cd439

File tree

1,081 files changed

+41507
-4302
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,081 files changed

+41507
-4302
lines changed

.github/ISSUE_TEMPLATE/bug.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
name: 🪲 Content bug or inaccuracy
1+
name: 🪲 Content bug or inaccuracy with non-API docs
22
description: Report typos, bugs, out-of-date content, broken links, etc.
33
labels: ["bug 🐛", "content 📄"]
44
assignees:
55
- abbycross
66
- beckykd
7-
- javabster
87

98
body:
109
- type: markdown

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ contact_links:
66
- name: Overall impressions and feedback
77
url: https://ibmxm.iad1.qualtrics.com/jfe/form/SV_7Uq9FCMjZPyTsFM?Q_PopulateResponse={%22QID20%22:%223%22}
88
about: Let us know what you think! Provide feedback to help us improve your documentation experience.
9-
- name: Qiskit API feedback
9+
- name: 🪲 Content bug or inaccuracy with docs.quantum.ibm.com/api/qiskit
1010
url: https://github.com/Qiskit/qiskit/issues/new/choose
1111
about: Open an issue in the Qiskit repository for the docs found at https://docs.quantum.ibm.com/api/qiskit.
12-
- name: Qiskit Runtime Client API feedback
12+
- name: 🪲 Content bug or inaccuracy with docs.quantum.ibm.com/api/qiskit-runtime
1313
url: https://github.com/Qiskit/qiskit-ibm-runtime/issues/new/choose
1414
about: Open an issue in the qiskit-ibm-runtime repository for the docs found at https://docs.quantum.ibm.com/api/qiskit-ibm-runtime/runtime_service.

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
run: npm run check:spelling
3333
- name: Check Qiskit bot config
3434
run: npm run check:qiskit-bot
35+
- name: Check Patterns index
36+
run: npm run check:patterns-index
3537
- name: Internal link checker
3638
run: npm run check:internal-links
3739
- name: Check orphaned pages

.github/workflows/notebook-test-cron.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,26 @@ jobs:
4040
git diff --name-only >> $GITHUB_OUTPUT
4141
echo "EOF" >> $GITHUB_OUTPUT
4242
43+
- name: Make pull request with notebook outputs
44+
if: "!cancelled()"
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
run: |
48+
git config user.email "github-actions[bot]@users.noreply.github.com"
49+
git config user.name "github-actions[bot]"
50+
git switch -c actions/cron-${{ github.run_id }}
51+
git commit -am "Re-run notebooks"
52+
git push origin actions/cron-${{ github.run_id }}
53+
gh pr create \
54+
-B main \
55+
-H actions/cron-${{ github.run_id }} \
56+
--title "Update notebook outputs" \
57+
--body "An action recently executed the notebooks in this repo. \
58+
This PR updates all notebooks that ran successfully with the new cell outputs.
59+
> [!NOTE]
60+
> This pull request was created by a GitHub action." \
61+
--reviewer frankharkins
62+
4363
- name: Upload executed notebooks
4464
if: "!cancelled()"
4565
uses: actions/upload-artifact@v4

.github/workflows/notebook-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ jobs:
5656
with:
5757
# Add your notebook to this list if it needs latex or graphviz to run
5858
files: |
59+
docs/guides/visualize-circuits.ipynb
60+
docs/guides/custom-backend.ipynb
61+
docs/guides/transpiler-stages.ipynb
62+
docs/guides/represent-quantum-computers.ipynb
63+
docs/guides/common-parameters.ipynb
5964
docs/build/circuit-visualization.ipynb
6065
docs/build-new/circuit-visualization.ipynb
6166
docs/transpile/common-parameters.ipynb
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# This code is a Qiskit project.
2+
#
3+
# (C) Copyright IBM 2023.
4+
#
5+
# This code is licensed under the Apache License, Version 2.0. You may
6+
# obtain a copy of this license in the LICENSE file in the root directory
7+
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
8+
#
9+
# Any modifications or derivative works of this code must retain this
10+
# copyright notice, and modified files need to carry a notice indicating
11+
# that they have been altered from the originals.
12+
13+
# WARNING: This event type uses secrets even when triggered by an untrusted PR.
14+
# Do NOT checkout the PR or access any user-defined inputs (such as the title) as it could be untrusted.
15+
# For more information, see https://securitylab.github.com/research/github-actions-preventing-pwn-requests/.
16+
# This event type runs on the target branch (rather than a merge commit of the
17+
# target and PR branches), so you'll need to test it out in a fork.
18+
19+
name: Preview teardown
20+
21+
on:
22+
pull_request_target:
23+
types: [closed]
24+
paths:
25+
- "docs/**/*"
26+
- "public/images/**/*"
27+
28+
jobs:
29+
teardown:
30+
# Do not edit or modify the repo name condition; see warning above
31+
if: |
32+
github.event.action == 'closed' &&
33+
github.event.pull_request.head.repo.full_name == github.repository
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: ./.github/actions/set-up-ibm-cloud
38+
id: set-up-cloud
39+
with:
40+
env_name: Preview
41+
ibmcloud_account: ${{ secrets.IBMCLOUD_ACCOUNT }}
42+
ibmcloud_api_key: ${{ secrets.IBMCLOUD_API_KEY }}
43+
- name: Remove Code Engine preview application
44+
run: |
45+
ibmcloud ce project select -n qiskit-docs-preview
46+
ibmcloud ce application delete \
47+
--name "${{ steps.set-up-cloud.outputs.app_name }}" \
48+
--wait \
49+
--ignore-not-found \
50+
--force

.github/workflows/preview-docs.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ name: Preview
2020

2121
on:
2222
pull_request:
23-
types: [opened, reopened, synchronize, closed]
23+
types: [opened, reopened, synchronize]
2424
paths:
2525
- "docs/**/*"
2626
- "public/images/**/*"
@@ -36,25 +36,3 @@ jobs:
3636
secrets:
3737
ibmcloud_account: ${{ secrets.IBMCLOUD_ACCOUNT }}
3838
ibmcloud_api_key: ${{ secrets.IBMCLOUD_API_KEY }}
39-
40-
teardown:
41-
if: |
42-
github.event.action == 'closed' &&
43-
github.event.pull_request.head.repo.full_name == github.repository
44-
runs-on: ubuntu-latest
45-
steps:
46-
- uses: actions/checkout@v4
47-
- uses: ./.github/actions/set-up-ibm-cloud
48-
id: set-up-cloud
49-
with:
50-
env_name: Preview
51-
ibmcloud_account: ${{ secrets.IBMCLOUD_ACCOUNT }}
52-
ibmcloud_api_key: ${{ secrets.IBMCLOUD_API_KEY }}
53-
- name: Remove Code Engine preview application
54-
run: |
55-
ibmcloud ce project select -n qiskit-docs-preview
56-
ibmcloud ce application delete \
57-
--name "${{ steps.set-up-cloud.outputs.app_name }}" \
58-
--wait \
59-
--ignore-not-found \
60-
--force

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
# 2. ❯ docker run --rm -p 3000:3000 -t qiskit-docs-preview
3232
# 3. Open up http://localhost:3000
3333

34-
FROM icr.io/quantum-computing/iqp-channel-docs-dev:latest
34+
FROM icr.io/quantum-computing/iqp-channel-docs-dev:open-source
3535

3636
COPY docs/ /home/node/app/docs
3737
COPY translations/ /home/node/app/docs
38-
COPY public/ /home/node/app/packages/web/public/
38+
COPY public/ /home/node/app/packages/preview/public/
3939

4040
EXPOSE 3000 5001

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,15 +436,15 @@ The add the following to your `.gitconfig` (usually found at `~/.gitconfig`).
436436

437437
This content lives on https://docs.quantum.ibm.com.
438438

439-
See https://github.ibm.com/IBM-Q-Software/iqp-channel-docs#syncing-content-with-open-source-repo.
439+
See the section "Syncing content with open source repo" in the internal docs repo's README.
440440

441441
### Deploy tutorials
442442

443443
This content lives on https://learning.quantum.ibm.com.
444444

445445
To deploy a file from the `tutorials/` directory in this repository, see the instructions in the [tutorials directory README](https://github.com/Qiskit/documentation/blob/main/tutorials/README.md).
446446

447-
To deploy a file from the ibm-quantum-learning-enablement repository, see the instructions in that repo's [tutorials directory README](https://github.ibm.com/IBM-Q-Software/ibm-quantum-learning-enablement/blob/main/tutorials/README.md).
447+
To deploy a file from the ibm-quantum-learning-enablement repository, see the instructions in the internal tutorial repo's tutorials directory README.
448448

449449
# How to write the documentation
450450

cspell/dictionaries/qiskit.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,7 @@ simulable
159159
resynthesizes
160160
sdist"
161161
transpiling
162+
mthree
163+
Algorithmiq
164+
unphysical
162165

0 commit comments

Comments
 (0)