|
54 | 54 | required: false
|
55 | 55 | type: string
|
56 | 56 | default: ''
|
57 |
| - disable_new_opmath: |
58 |
| - description: Whether to disable the new op_math or not when running the tests |
59 |
| - required: false |
60 |
| - type: string |
61 |
| - default: "False" |
62 | 57 | additional_python_packages:
|
63 | 58 | description: Additional Python packages to install separated by a space
|
64 | 59 | required: false
|
@@ -246,7 +241,7 @@ jobs:
|
246 | 241 | ${{ needs.default-dependency-versions.outputs.pytorch-version }}
|
247 | 242 | ${{ inputs.additional_python_packages }}
|
248 | 243 | additional_pip_packages_post: ${{ needs.default-dependency-versions.outputs.pennylane-lightning-latest }}
|
249 |
| - pytest_additional_args: --disable-opmath=${{ inputs.disable_new_opmath }} -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
| 244 | + pytest_additional_args: -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
250 | 245 | pytest_coverage_flags: ${{ inputs.pytest_coverage_flags }}
|
251 | 246 | pytest_markers: torch and not qcut and not finite-diff and not param-shift
|
252 | 247 | requirements_file: ${{ github.event_name == 'schedule' && strategy.job-index == 0 && 'torch.txt' || '' }}
|
@@ -282,7 +277,7 @@ jobs:
|
282 | 277 | additional_pip_packages: ${{ inputs.additional_python_packages }}
|
283 | 278 | additional_pip_packages_post: ${{ needs.default-dependency-versions.outputs.pennylane-lightning-latest }}
|
284 | 279 | pytest_coverage_flags: ${{ inputs.pytest_coverage_flags }}
|
285 |
| - pytest_additional_args: --disable-opmath=${{ inputs.disable_new_opmath }} -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
| 280 | + pytest_additional_args: -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
286 | 281 | pytest_markers: autograd and not qcut and not finite-diff and not param-shift
|
287 | 282 |
|
288 | 283 |
|
@@ -320,7 +315,7 @@ jobs:
|
320 | 315 | additional_pip_packages_post: ${{ needs.default-dependency-versions.outputs.pennylane-lightning-latest }}
|
321 | 316 | pytest_coverage_flags: ${{ inputs.pytest_coverage_flags }}
|
322 | 317 | pytest_markers: tf and not qcut and not finite-diff and not param-shift
|
323 |
| - pytest_additional_args: --splits 3 --group ${{ matrix.group }} --disable-opmath=${{ inputs.disable_new_opmath }} -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
| 318 | + pytest_additional_args: --splits 3 --group ${{ matrix.group }} -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
324 | 319 | pytest_durations_file_path: '.github/durations/tf_tests_durations.json'
|
325 | 320 | requirements_file: ${{ github.event_name == 'schedule' && strategy.job-index == 0 && 'tf.txt' || '' }}
|
326 | 321 |
|
@@ -358,7 +353,7 @@ jobs:
|
358 | 353 | additional_pip_packages_post: ${{ needs.default-dependency-versions.outputs.pennylane-lightning-latest }}
|
359 | 354 | pytest_coverage_flags: ${{ inputs.pytest_coverage_flags }}
|
360 | 355 | pytest_markers: jax and not qcut and not finite-diff and not param-shift
|
361 |
| - pytest_additional_args: --dist=loadscope --splits 4 --group ${{ matrix.group }} --disable-opmath=${{ inputs.disable_new_opmath }} -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
| 356 | + pytest_additional_args: --dist=loadscope --splits 4 --group ${{ matrix.group }} -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
362 | 357 | pytest_durations_file_path: '.github/durations/jax_tests_durations.json'
|
363 | 358 | requirements_file: ${{ github.event_name == 'schedule' && strategy.job-index == 0 && 'jax.txt' || '' }}
|
364 | 359 |
|
@@ -395,7 +390,7 @@ jobs:
|
395 | 390 | additional_pip_packages_post: ${{ needs.default-dependency-versions.outputs.pennylane-lightning-latest }}
|
396 | 391 | pytest_coverage_flags: ${{ inputs.pytest_coverage_flags }}
|
397 | 392 | pytest_markers: core and not qcut and not finite-diff and not param-shift
|
398 |
| - pytest_additional_args: --splits 6 --group ${{ matrix.group }} --disable-opmath=${{ inputs.disable_new_opmath }} -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
| 393 | + pytest_additional_args: --splits 6 --group ${{ matrix.group }} -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
399 | 394 | pytest_durations_file_path: '.github/durations/core_tests_durations.json'
|
400 | 395 | requirements_file: ${{ github.event_name == 'schedule' && strategy.job-index == 0 && 'core.txt' || '' }}
|
401 | 396 |
|
@@ -435,7 +430,7 @@ jobs:
|
435 | 430 | additional_pip_packages_post: ${{ needs.default-dependency-versions.outputs.pennylane-lightning-latest }}
|
436 | 431 | pytest_coverage_flags: ${{ inputs.pytest_coverage_flags }}
|
437 | 432 | pytest_markers: all_interfaces
|
438 |
| - pytest_additional_args: --disable-opmath=${{ inputs.disable_new_opmath }} -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
| 433 | + pytest_additional_args: -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
439 | 434 | requirements_file: ${{ github.event_name == 'schedule' && strategy.job-index == 0 && 'all_interfaces.txt' || '' }}
|
440 | 435 |
|
441 | 436 |
|
@@ -468,9 +463,9 @@ jobs:
|
468 | 463 | python_version: ${{ matrix.python-version }}
|
469 | 464 | pytest_coverage_flags: ${{ inputs.pytest_coverage_flags }}
|
470 | 465 | pytest_markers: external
|
471 |
| - pytest_additional_args: --disable-opmath=${{ inputs.disable_new_opmath }} -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
| 466 | + pytest_additional_args: -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
472 | 467 | additional_pip_packages: |
|
473 |
| - pyzx matplotlib stim quimb mitiq ply |
| 468 | + pyzx matplotlib stim quimb==1.8.4 mitiq ply |
474 | 469 | git+https://github.com/PennyLaneAI/pennylane-qiskit.git@master
|
475 | 470 | ${{ needs.default-dependency-versions.outputs.jax-version }}
|
476 | 471 | ${{ needs.default-dependency-versions.outputs.tensorflow-version }}
|
@@ -515,7 +510,7 @@ jobs:
|
515 | 510 | python_version: ${{ matrix.python-version }}
|
516 | 511 | pytest_coverage_flags: ${{ inputs.pytest_coverage_flags }}
|
517 | 512 | pytest_markers: qcut
|
518 |
| - pytest_additional_args: --disable-opmath=${{ inputs.disable_new_opmath }} -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
| 513 | + pytest_additional_args: -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
519 | 514 | additional_pip_packages: |
|
520 | 515 | kahypar==1.1.7
|
521 | 516 | opt_einsum
|
@@ -557,7 +552,7 @@ jobs:
|
557 | 552 | additional_pip_packages_post: ${{ needs.default-dependency-versions.outputs.pennylane-lightning-latest }}
|
558 | 553 | pytest_coverage_flags: ${{ inputs.pytest_coverage_flags }}
|
559 | 554 | pytest_markers: qchem
|
560 |
| - pytest_additional_args: --disable-opmath=${{ inputs.disable_new_opmath }} -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
| 555 | + pytest_additional_args: -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
561 | 556 | additional_pip_packages: |
|
562 | 557 | openfermionpyscf basis-set-exchange
|
563 | 558 | ${{ inputs.additional_python_packages }}
|
@@ -592,7 +587,7 @@ jobs:
|
592 | 587 | branch: ${{ inputs.branch }}
|
593 | 588 | coverage_artifact_name: gradients-${{ matrix.config.suite }}-coverage
|
594 | 589 | python_version: ${{ matrix.python-version }}
|
595 |
| - pytest_additional_args: --disable-opmath=${{ inputs.disable_new_opmath }} -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
| 590 | + pytest_additional_args: -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
596 | 591 | additional_pip_packages: |
|
597 | 592 | ${{ needs.default-dependency-versions.outputs.jax-version }}
|
598 | 593 | ${{ needs.default-dependency-versions.outputs.tensorflow-version }}
|
@@ -632,7 +627,7 @@ jobs:
|
632 | 627 | python_version: ${{ matrix.python-version }}
|
633 | 628 | additional_pip_packages_post: ${{ needs.default-dependency-versions.outputs.pennylane-lightning-latest }}
|
634 | 629 | pytest_coverage_flags: ${{ inputs.pytest_coverage_flags }}
|
635 |
| - pytest_additional_args: --disable-opmath=${{ inputs.disable_new_opmath }} -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
| 630 | + pytest_additional_args: -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
636 | 631 | pytest_markers: data
|
637 | 632 | additional_pip_packages: |
|
638 | 633 | h5py
|
@@ -681,7 +676,7 @@ jobs:
|
681 | 676 | additional_pip_packages_post: ${{ needs.default-dependency-versions.outputs.pennylane-lightning-latest }}
|
682 | 677 | pytest_test_directory: pennylane/devices/tests
|
683 | 678 | pytest_coverage_flags: ${{ inputs.pytest_coverage_flags }}
|
684 |
| - pytest_additional_args: --device=${{ matrix.config.device }} --shots=${{ matrix.config.shots }} --disable-opmath=${{ inputs.disable_new_opmath }} -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
| 679 | + pytest_additional_args: --device=${{ matrix.config.device }} --shots=${{ matrix.config.shots }} -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }} |
685 | 680 |
|
686 | 681 |
|
687 | 682 | upload-to-codecov:
|
|
0 commit comments