Skip to content

Commit 7b4b1e5

Browse files
Merge branch 'main' into cp/hpc-launch
2 parents be15040 + 595a049 commit 7b4b1e5

File tree

8,004 files changed

+68112
-65897
lines changed

Some content is hidden

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

8,004 files changed

+68112
-65897
lines changed

.github/workflows/main.yml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,12 @@ jobs:
4141
PR_NUMBER="${{ github.event.number }}"
4242
fi
4343
44+
mkdir -p .github/outputs
4445
CHANGED_FILES=$(node scripts/ci/determine-changed-files.ts "${PR_NUMBER}")
45-
{
46-
echo "ALL_CHANGED_FILES<<__GH_OUTPUT__"
47-
printf '%s\n' "$CHANGED_FILES"
48-
echo "__GH_OUTPUT__"
49-
} >> "$GITHUB_OUTPUT"
46+
printf '%s\n' "$CHANGED_FILES" > .github/outputs/changed-files.txt
5047
- name: Decide which jobs to run
5148
id: decide
5249
env:
53-
CHANGED_FILES: ${{ steps.changed-files.outputs.ALL_CHANGED_FILES }}
5450
# If changing these regexes, test them on https://regex101.com/ with the
5551
# following paths (you can paste the block in and uncomment it):
5652
# Add new tests if necessary
@@ -81,16 +77,22 @@ jobs:
8177
# public/learning/image.svg
8278
# .github/workflows/notebook-test-cron.yml
8379
run: |
84-
if [[ "${{ github.event_name }}" == 'pull_request' && -n "$(printf '%s\n' "${CHANGED_FILES}" | grep -P "$NOTEBOOK_TEST_REGEX")" ]]; then
80+
if [[ "${{ github.event_name }}" == 'pull_request' && -n "$(grep -P "$NOTEBOOK_TEST_REGEX" .github/outputs/changed-files.txt)" ]]; then
8581
echo "RUN_NOTEBOOK_TESTER=true" >> "$GITHUB_OUTPUT"
8682
fi
87-
if [[ "${{ github.event_name }}" == 'pull_request' && -n "$(printf '%s\n' "${CHANGED_FILES}" | grep -P "$API_CHECKS_REGEX")" ]]; then
83+
if [[ "${{ github.event_name }}" == 'pull_request' && -n "$(grep -P "$API_CHECKS_REGEX" .github/outputs/changed-files.txt)" ]]; then
8884
echo "RUN_API_CHECKS=true" >> "$GITHUB_OUTPUT"
8985
fi
86+
- name: Save changed files artifact
87+
uses: actions/upload-artifact@v4
88+
with:
89+
name: changed-files-artifact
90+
path: .github/outputs
9091

9192
lint:
9293
name: Lint
9394
runs-on: ubuntu-latest
95+
needs: [decide-jobs]
9496
if: github.repository_owner == 'Qiskit'
9597
steps:
9698
- uses: actions/checkout@v4
@@ -113,8 +115,6 @@ jobs:
113115
run: npm run check:spelling
114116
- name: Check Qiskit bot config
115117
run: npm run check:qiskit-bot
116-
- name: Check Patterns index
117-
run: npm run check:patterns-index
118118
- name: Check tutorials index
119119
run: python scripts/ci/check-tutorials-index.py
120120
- name: Internal link checker
@@ -130,9 +130,13 @@ jobs:
130130
- name: Infrastructure tests
131131
run: npm test
132132

133+
- name: Get changed files artifact
134+
uses: actions/download-artifact@v4
135+
with:
136+
name: changed-files-artifact
137+
path: .github/outputs
133138
- name: Get all changed content files
134139
env:
135-
CHANGED_FILES: ${{needs.decide-jobs.outputs.all-changed-files}}
136140
# If changing these regexes, test them on https://regex101.com/ with the
137141
# following paths (you can paste the block in and uncomment it):
138142
# Add new tests if necessary
@@ -148,13 +152,13 @@ jobs:
148152
# scripts/nb-tester/example-notebook.ipynb
149153
id: changed-content-files
150154
run: |
151-
CHANGED_CONTENT_FILES=$(echo "${CHANGED_FILES}" | grep -P $CONTENT_FILE_REGEX || true)
155+
CHANGED_CONTENT_FILES=$(grep -P $CONTENT_FILE_REGEX .github/outputs/changed-files.txt || true)
152156
if [ "$CHANGED_CONTENT_FILES" != '' ]
153157
then
154158
echo "ANY_CHANGED=true" >> "$GITHUB_OUTPUT"
155159
fi
156160
mkdir -p .github/outputs
157-
echo $CHANGED_CONTENT_FILES >> .github/outputs/changed-content-files.txt
161+
printf '%s\n' "$CHANGED_CONTENT_FILES" >> .github/outputs/changed-content-files.txt
158162
- name: Pull preview image
159163
if: steps.changed-content-files.outputs.ANY_CHANGED == 'true'
160164
run: ./start --pull-only
@@ -205,13 +209,11 @@ jobs:
205209
runs-on: ubuntu-latest
206210
steps:
207211
- uses: actions/checkout@v4
208-
- name: Get changed files
209-
env:
210-
CHANGED_FILES: ${{needs.decide-jobs.outputs.all-changed-files}}
211-
run: |
212-
mkdir -p .github/outputs
213-
echo "${CHANGED_FILES}" > .github/outputs/changed-files.txt
214-
212+
- name: Get changed files artifact
213+
uses: actions/download-artifact@v4
214+
with:
215+
name: changed-files-artifact
216+
path: .github/outputs
215217
- name: Check if extra linux deps needed
216218
id: check-deps
217219
shell: python

.github/workflows/pr-preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ jobs:
7979
# If changing these regexes, test them on https://regex101.com/ with the
8080
# following paths (you can paste the block in and uncomment it):
8181
# Add new tests if necessary
82-
CONTENT_FILE_REGEX: (docs|learning)(?!\/api)\/.*\.(mdx|ipynb)
82+
CONTENT_FILE_REGEX: (docs|learning)(?!\/api)\/.*\.(mdx|ipynb|json)
8383
# -- Should match:
8484
# docs/guides/thing.ipynb
8585
# docs/guides/thing.mdx
8686
# learning/courses/my-course/introduction.ipynb
87+
# docs/guides/_toc.json
8788
#
8889
# -- Should not match:
89-
# docs/guides/_toc.json
9090
# docs/api/qiskit/index.mdx
9191
# scripts/nb-tester/example-notebook.ipynb
9292
id: changed-content-files

check

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ CHECKS = {
2828
"notebook linters": ["tox", "-e", "lint"],
2929
"all notebooks are tested": ["python3", "scripts/ci/check-all-notebooks-are-tested.py"],
3030
"Qiskit bot": ["npm", "run", "check:qiskit-bot"],
31-
"patterns index pages": ["npm", "run", "check:patterns-index"],
3231
"tutorials index page": ["python3", "scripts/ci/check-tutorials-index.py"],
3332
"markdown": ["npm", "run", "check:markdown"],
3433
"orphan pages": ["npm", "run", "check:orphan-pages"],

docs/api/qiskit-addon-aqc-tensor/0.1/ansatz-generation-ansatz-block.mdx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ python_api_name: qiskit_addon_aqc_tensor.ansatz_generation.AnsatzBlock
99
# AnsatzBlock
1010

1111
<Class id="qiskit_addon_aqc_tensor.ansatz_generation.AnsatzBlock" isDedicatedPage={true} github="https://github.com/Qiskit/qiskit-addon-aqc-tensor/tree/stable/0.1/qiskit_addon_aqc_tensor/ansatz_generation.py#L32-L52" signature="AnsatzBlock(params)" modifiers="class">
12-
Bases: [`Gate`](/docs/api/qiskit/qiskit.circuit.Gate "(in Qiskit v1.2)")
12+
Bases: [`Gate`](/docs/api/qiskit/qiskit.circuit.Gate)
1313

1414
Ansatz block.
1515

@@ -19,7 +19,7 @@ python_api_name: qiskit_addon_aqc_tensor.ansatz_generation.AnsatzBlock
1919

2020
**Parameters**
2121

22-
**params** ([`Sequence`](https://docs.python.org/3/library/typing.html#typing.Sequence "(in Python v3.13)")\[[`Parameter`](/docs/api/qiskit/qiskit.circuit.Parameter "(in Qiskit v1.2)")]) – Sequence of parameters.
22+
**params** ([`Sequence`](https://docs.python.org/3/library/typing.html#typing.Sequence)\[[`Parameter`](/docs/api/qiskit/qiskit.circuit.Parameter)]) – Sequence of parameters.
2323

2424
## Attributes
2525

@@ -173,12 +173,12 @@ python_api_name: qiskit_addon_aqc_tensor.ansatz_generation.AnsatzBlock
173173
174174
**Parameters**
175175
176-
* **qargs** ([`list`](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.13)")) – List of quantum bit arguments.
177-
* **cargs** ([`list`](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.13)")) – List of classical bit arguments.
176+
* **qargs** ([`list`](https://docs.python.org/3/library/stdtypes.html#list)) – List of quantum bit arguments.
177+
* **cargs** ([`list`](https://docs.python.org/3/library/stdtypes.html#list)) – List of classical bit arguments.
178178
179179
**Return type**
180180
181-
[`Iterable`](https://docs.python.org/3/library/typing.html#typing.Iterable "(in Python v3.13)")\[[`tuple`](https://docs.python.org/3/library/stdtypes.html#tuple "(in Python v3.13)")\[[`list`](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.13)"), [`list`](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.13)")]]
181+
[`Iterable`](https://docs.python.org/3/library/typing.html#typing.Iterable)\[[`tuple`](https://docs.python.org/3/library/stdtypes.html#tuple)\[[`list`](https://docs.python.org/3/library/stdtypes.html#list), [`list`](https://docs.python.org/3/library/stdtypes.html#list)]]
182182
183183
**Returns**
184184
@@ -229,15 +229,15 @@ python_api_name: qiskit_addon_aqc_tensor.ansatz_generation.AnsatzBlock
229229
230230
**Parameters**
231231
232-
**name** ([*str*](https://docs.python.org/3/library/stdtypes.html#str "(in Python v3.13)")) – name to be given to the copied circuit, if `None` then the name stays the same.
232+
**name** ([*str*](https://docs.python.org/3/library/stdtypes.html#str)) – name to be given to the copied circuit, if `None` then the name stays the same.
233233
234234
**Returns**
235235
236236
a copy of the current instruction, with the name updated if it was provided
237237
238238
**Return type**
239239
240-
[qiskit.circuit.Instruction](/docs/api/qiskit/qiskit.circuit.Instruction "(in Qiskit v1.2)")
240+
[qiskit.circuit.Instruction](/docs/api/qiskit/qiskit.circuit.Instruction)
241241
</Function>
242242
243243
### inverse
@@ -253,7 +253,7 @@ python_api_name: qiskit_addon_aqc_tensor.ansatz_generation.AnsatzBlock
253253
254254
**Parameters**
255255
256-
**annotated** ([`bool`](https://docs.python.org/3/library/functions.html#bool "(in Python v3.13)")) – if set to True the output inverse gate will be returned as `AnnotatedOperation`.
256+
**annotated** ([`bool`](https://docs.python.org/3/library/functions.html#bool)) – if set to True the output inverse gate will be returned as `AnnotatedOperation`.
257257
258258
**Returns**
259259
@@ -267,7 +267,7 @@ python_api_name: qiskit_addon_aqc_tensor.ansatz_generation.AnsatzBlock
267267
### is\_parameterized
268268
269269
<Function id="qiskit_addon_aqc_tensor.ansatz_generation.AnsatzBlock.is_parameterized" signature="is_parameterized()">
270-
Return whether the `Instruction` contains [compile-time parameters](/docs/api/qiskit/circuit#circuit-compile-time-parameters "(in Qiskit v1.2)").
270+
Return whether the `Instruction` contains [compile-time parameters](/docs/api/qiskit/circuit#circuit-compile-time-parameters).
271271
</Function>
272272
273273
### power
@@ -279,8 +279,8 @@ python_api_name: qiskit_addon_aqc_tensor.ansatz_generation.AnsatzBlock
279279
280280
**Parameters**
281281
282-
* **exponent** ([*float*](https://docs.python.org/3/library/functions.html#float "(in Python v3.13)")) – the power to raise the gate to
283-
* **annotated** ([*bool*](https://docs.python.org/3/library/functions.html#bool "(in Python v3.13)")) – indicates whether the power gate can be implemented as an annotated operation. In the case of several standard gates, such as `RXGate`, this argument is ignored when the power of a gate can be expressed in terms of another standard gate.
282+
* **exponent** ([*float*](https://docs.python.org/3/library/functions.html#float)) – the power to raise the gate to
283+
* **annotated** ([*bool*](https://docs.python.org/3/library/functions.html#bool)) – indicates whether the power gate can be implemented as an annotated operation. In the case of several standard gates, such as `RXGate`, this argument is ignored when the power of a gate can be expressed in terms of another standard gate.
284284
285285
**Returns**
286286
@@ -300,15 +300,15 @@ python_api_name: qiskit_addon_aqc_tensor.ansatz_generation.AnsatzBlock
300300
301301
**Parameters**
302302
303-
**n** ([*int*](https://docs.python.org/3/library/functions.html#int "(in Python v3.13)")) – Number of times to repeat the instruction
303+
**n** ([*int*](https://docs.python.org/3/library/functions.html#int)) – Number of times to repeat the instruction
304304
305305
**Returns**
306306
307307
Containing the definition.
308308
309309
**Return type**
310310
311-
[qiskit.circuit.Instruction](/docs/api/qiskit/qiskit.circuit.Instruction "(in Qiskit v1.2)")
311+
[qiskit.circuit.Instruction](/docs/api/qiskit/qiskit.circuit.Instruction)
312312
313313
**Raises**
314314
@@ -330,7 +330,7 @@ python_api_name: qiskit_addon_aqc_tensor.ansatz_generation.AnsatzBlock
330330
331331
**Return type**
332332
333-
[qiskit.circuit.Instruction](/docs/api/qiskit/qiskit.circuit.Instruction "(in Qiskit v1.2)")
333+
[qiskit.circuit.Instruction](/docs/api/qiskit/qiskit.circuit.Instruction)
334334
</Function>
335335
336336
### soft\_compare
@@ -348,7 +348,7 @@ python_api_name: qiskit_addon_aqc_tensor.ansatz_generation.AnsatzBlock
348348
349349
**Return type**
350350
351-
[bool](https://docs.python.org/3/library/functions.html#bool "(in Python v3.13)")
351+
[bool](https://docs.python.org/3/library/functions.html#bool)
352352
</Function>
353353
354354
### to\_matrix

docs/api/qiskit-addon-aqc-tensor/0.1/ansatz-generation-kak.mdx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ python_api_name: qiskit_addon_aqc_tensor.ansatz_generation.KAK
1717

1818
**Parameters**
1919

20-
**params** ([`Sequence`](https://docs.python.org/3/library/typing.html#typing.Sequence "(in Python v3.13)")\[[`Parameter`](/docs/api/qiskit/qiskit.circuit.Parameter "(in Qiskit v1.2)")]) – Sequence of parameters.
20+
**params** ([`Sequence`](https://docs.python.org/3/library/typing.html#typing.Sequence)\[[`Parameter`](/docs/api/qiskit/qiskit.circuit.Parameter)]) – Sequence of parameters.
2121

2222
## Attributes
2323

@@ -183,12 +183,12 @@ python_api_name: qiskit_addon_aqc_tensor.ansatz_generation.KAK
183183
184184
**Parameters**
185185
186-
* **qargs** ([`list`](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.13)")) – List of quantum bit arguments.
187-
* **cargs** ([`list`](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.13)")) – List of classical bit arguments.
186+
* **qargs** ([`list`](https://docs.python.org/3/library/stdtypes.html#list)) – List of quantum bit arguments.
187+
* **cargs** ([`list`](https://docs.python.org/3/library/stdtypes.html#list)) – List of classical bit arguments.
188188
189189
**Return type**
190190
191-
[`Iterable`](https://docs.python.org/3/library/typing.html#typing.Iterable "(in Python v3.13)")\[[`tuple`](https://docs.python.org/3/library/stdtypes.html#tuple "(in Python v3.13)")\[[`list`](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.13)"), [`list`](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.13)")]]
191+
[`Iterable`](https://docs.python.org/3/library/typing.html#typing.Iterable)\[[`tuple`](https://docs.python.org/3/library/stdtypes.html#tuple)\[[`list`](https://docs.python.org/3/library/stdtypes.html#list), [`list`](https://docs.python.org/3/library/stdtypes.html#list)]]
192192
193193
**Returns**
194194
@@ -239,15 +239,15 @@ python_api_name: qiskit_addon_aqc_tensor.ansatz_generation.KAK
239239
240240
**Parameters**
241241
242-
**name** ([*str*](https://docs.python.org/3/library/stdtypes.html#str "(in Python v3.13)")) – name to be given to the copied circuit, if `None` then the name stays the same.
242+
**name** ([*str*](https://docs.python.org/3/library/stdtypes.html#str)) – name to be given to the copied circuit, if `None` then the name stays the same.
243243
244244
**Returns**
245245
246246
a copy of the current instruction, with the name updated if it was provided
247247
248248
**Return type**
249249
250-
[qiskit.circuit.Instruction](/docs/api/qiskit/qiskit.circuit.Instruction "(in Qiskit v1.2)")
250+
[qiskit.circuit.Instruction](/docs/api/qiskit/qiskit.circuit.Instruction)
251251
</Function>
252252
253253
### inverse
@@ -263,7 +263,7 @@ python_api_name: qiskit_addon_aqc_tensor.ansatz_generation.KAK
263263
264264
**Parameters**
265265
266-
**annotated** ([`bool`](https://docs.python.org/3/library/functions.html#bool "(in Python v3.13)")) – if set to True the output inverse gate will be returned as `AnnotatedOperation`.
266+
**annotated** ([`bool`](https://docs.python.org/3/library/functions.html#bool)) – if set to True the output inverse gate will be returned as `AnnotatedOperation`.
267267
268268
**Returns**
269269
@@ -277,7 +277,7 @@ python_api_name: qiskit_addon_aqc_tensor.ansatz_generation.KAK
277277
### is\_parameterized
278278
279279
<Function id="qiskit_addon_aqc_tensor.ansatz_generation.KAK.is_parameterized" signature="is_parameterized()">
280-
Return whether the `Instruction` contains [compile-time parameters](/docs/api/qiskit/circuit#circuit-compile-time-parameters "(in Qiskit v1.2)").
280+
Return whether the `Instruction` contains [compile-time parameters](/docs/api/qiskit/circuit#circuit-compile-time-parameters).
281281
</Function>
282282
283283
### power
@@ -289,8 +289,8 @@ python_api_name: qiskit_addon_aqc_tensor.ansatz_generation.KAK
289289
290290
**Parameters**
291291
292-
* **exponent** ([*float*](https://docs.python.org/3/library/functions.html#float "(in Python v3.13)")) – the power to raise the gate to
293-
* **annotated** ([*bool*](https://docs.python.org/3/library/functions.html#bool "(in Python v3.13)")) – indicates whether the power gate can be implemented as an annotated operation. In the case of several standard gates, such as `RXGate`, this argument is ignored when the power of a gate can be expressed in terms of another standard gate.
292+
* **exponent** ([*float*](https://docs.python.org/3/library/functions.html#float)) – the power to raise the gate to
293+
* **annotated** ([*bool*](https://docs.python.org/3/library/functions.html#bool)) – indicates whether the power gate can be implemented as an annotated operation. In the case of several standard gates, such as `RXGate`, this argument is ignored when the power of a gate can be expressed in terms of another standard gate.
294294
295295
**Returns**
296296
@@ -310,15 +310,15 @@ python_api_name: qiskit_addon_aqc_tensor.ansatz_generation.KAK
310310
311311
**Parameters**
312312
313-
**n** ([*int*](https://docs.python.org/3/library/functions.html#int "(in Python v3.13)")) – Number of times to repeat the instruction
313+
**n** ([*int*](https://docs.python.org/3/library/functions.html#int)) – Number of times to repeat the instruction
314314
315315
**Returns**
316316
317317
Containing the definition.
318318
319319
**Return type**
320320
321-
[qiskit.circuit.Instruction](/docs/api/qiskit/qiskit.circuit.Instruction "(in Qiskit v1.2)")
321+
[qiskit.circuit.Instruction](/docs/api/qiskit/qiskit.circuit.Instruction)
322322
323323
**Raises**
324324
@@ -340,7 +340,7 @@ python_api_name: qiskit_addon_aqc_tensor.ansatz_generation.KAK
340340
341341
**Return type**
342342
343-
[qiskit.circuit.Instruction](/docs/api/qiskit/qiskit.circuit.Instruction "(in Qiskit v1.2)")
343+
[qiskit.circuit.Instruction](/docs/api/qiskit/qiskit.circuit.Instruction)
344344
</Function>
345345
346346
### soft\_compare
@@ -358,7 +358,7 @@ python_api_name: qiskit_addon_aqc_tensor.ansatz_generation.KAK
358358
359359
**Return type**
360360
361-
[bool](https://docs.python.org/3/library/functions.html#bool "(in Python v3.13)")
361+
[bool](https://docs.python.org/3/library/functions.html#bool)
362362
</Function>
363363
364364
### to\_matrix

0 commit comments

Comments
 (0)