Skip to content

Commit

Permalink
[Stable] Pre-release Preparation for 0.8.1 (#874)
Browse files Browse the repository at this point in the history
* Fix StackOverflow formatting typo in `README.md` (#847)

* Fix StackOverflow formatting typo

* Bump numpy version to 2

* Post release 0.8 (#844)

* Change version and activate stable tutorial tests

* Bump VERSION.txt

* Cleanup and bugfix to support different primitives. (#55) (#855)

* Cleanup and bugfix for different primitives support (#55)

* Quick fix and lint for unit tests.

* Fixed a bug in ComputeUncompute and lint corrections.

* Fix formatting for algorithm tests

* Reformatting some variables to make lint compliant.

* Refactor: Cleanup code, preserve existing formatting, apply minor bug fixes, and update missing documentation

* Removing unsupported classes.

* Fix for lint

* Fix lint errors uncovered during workflow checks

* Adjust a unit test to accomodate noise-related variations

* Docs 0p8 clean (#857)

* Reducing numpy version for deploy-docs.yml to fix numpy 2.0 bug (#851)

* Update deploy-docs.yml (#853)

- Updated Python version from 3.9 to 3.10.
- Removed version constraint on torchvision.
- Removed Numpy version constraint.

* Update deploy-docs.yml to '3.10' (#854)

---------

Co-authored-by: M. Emre Sahin <[email protected]>
Co-authored-by: Oscar <[email protected]>

* Remove `fastdtw` (#861)

* ci(mergify): upgrade configuration to current format (#860)

Co-authored-by: Mergify <37929162+mergify[bot]@users.noreply.github.com>

* [Docs] Fix TOCs and update QNN derived primitives (#862)

* Fix docs and update QNN derived primitives

* Fix LearningRate in TOCs

* Fix string formatting

* Fix spelling

* Fix spelling

* Fix spelling

* Fix copyright

* Pin Qiskit to `<1.3` (#865)

* Added callback function support for adam-amsgrad optimizer. (#869)

* Added callback functionality to ADAM optimiser

* Added unittest for callback function

* Cumulative update to extend the V2 support for algorithms, updated tutorials, and partial multiclass support for VQC. (#870)

* Added migration guide for 0.8

* Added V2 support for algorithms

* V2 support added for unit tests of the algorithms and tutorials are updated for V2

* Spell check and lint

* Update 02_migration_guide_0.8.rst

* Update 02_migration_guide_0.8.rst

adding optimisation level

* Bugfix for V2 primitives without transpilation

* Fix tutorials and release notes

* Update 04_torch_qgan.ipynb

* Bugfix for Qiskit 1.x register name ambiguity

* Restored docs

* Typo fix in gradients

---------

Co-authored-by: smens <[email protected]>
Co-authored-by: Oscar <[email protected]>

* Add predict_proba Support to PegasosQSVC and NeuralNetworkClassifier (#871)

* Adding a predict_proba function to classifiers. (#57)

* Update README.md

* Predict proba for NNC and PegQSVC

* Rewriting predict proba features and docstring

It was very inefficient before and didn't have the validation checks needed. The code is now more clear and docstring has been added.

* Tweak documentation for NNC and PegasosQSVC, silence lint E1101 on torch connector

* Update test with `QNN.predict_proba`

* Update test with `PegasosESVC.predict_proba`

* Added a release note and solved conflicts with main

---------

Co-authored-by: FrancescaSchiav <[email protected]>
Co-authored-by: oscar-wallis <[email protected]>
Co-authored-by: Edoardo Altamura <[email protected]>
Co-authored-by: smens <[email protected]>

* Reformatted docs

* Fix usage of sklearn

---------

Co-authored-by: FrancescaSchiav <[email protected]>
Co-authored-by: oscar-wallis <[email protected]>
Co-authored-by: Edoardo Altamura <[email protected]>
Co-authored-by: smens <[email protected]>

* Bump version to 0.8.1

Update version for bug-fix release

---------

Co-authored-by: Edoardo Altamura <[email protected]>
Co-authored-by: Oscar <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: smens <[email protected]>
Co-authored-by: FrancescaSchiav <[email protected]>
  • Loading branch information
6 people authored Dec 9, 2024
1 parent 746ca3d commit 3e446fd
Show file tree
Hide file tree
Showing 58 changed files with 1,363 additions and 369 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,36 +225,36 @@ jobs:
with:
name: tutorials${{ matrix.python-version }}
path: docs/_build/html/artifacts/tutorials.tar.gz
# - name: Run stable tutorials
# env:
# QISKIT_PARALLEL: False
# QISKIT_DOCS_BUILD_TUTORIALS: 'always'
# run: |
# # clean last sphinx output
# make clean_sphinx
# # get current version
# version=$(pip show qiskit-machine-learning | awk -F. '/^Version:/ { print substr($1,10), $2-1 }' OFS=.)
# # download stable version
# wget https://codeload.github.com/qiskit-community/qiskit-machine-learning/zip/stable/$version -O /tmp/repo.zip
# unzip /tmp/repo.zip -d /tmp/
# # copy stable tutorials to main tutorials
# cp -R /tmp/qiskit-machine-learning-stable-$version/docs/tutorials/* docs/tutorials
# # run tutorials and zip results
# echo "earliest_version: 0.1.0" >> releasenotes/config.yaml
# # ignore unreleased/untagged notes
# tools/ignore_untagged_notes.sh
# make html
# cd docs/_build/html
# mkdir artifacts
# tar -zcvf artifacts/tutorials.tar.gz --exclude=./artifacts .
# if: ${{ matrix.python-version == 3.9 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }}
# shell: bash
# - name: Run upload stable tutorials
# uses: actions/upload-artifact@v4
# with:
# name: tutorials-stable${{ matrix.python-version }}
# path: docs/_build/html/artifacts/tutorials.tar.gz
# if: ${{ matrix.python-version == 3.9 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }}
- name: Run stable tutorials
env:
QISKIT_PARALLEL: False
QISKIT_DOCS_BUILD_TUTORIALS: 'always'
run: |
# clean last sphinx output
make clean_sphinx
# get current version
version=$(pip show qiskit-machine-learning | awk -F. '/^Version:/ { print substr($1,10), $2-1 }' OFS=.)
# download stable version
wget https://codeload.github.com/qiskit-community/qiskit-machine-learning/zip/stable/$version -O /tmp/repo.zip
unzip /tmp/repo.zip -d /tmp/
# copy stable tutorials to main tutorials
cp -R /tmp/qiskit-machine-learning-stable-$version/docs/tutorials/* docs/tutorials
# run tutorials and zip results
echo "earliest_version: 0.1.0" >> releasenotes/config.yaml
# ignore unreleased/untagged notes
tools/ignore_untagged_notes.sh
make html
cd docs/_build/html
mkdir artifacts
tar -zcvf artifacts/tutorials.tar.gz --exclude=./artifacts .
if: ${{ matrix.python-version == 3.9 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }}
shell: bash
- name: Run upload stable tutorials
uses: actions/upload-artifact@v4
with:
name: tutorials-stable${{ matrix.python-version }}
path: docs/_build/html/artifacts/tutorials.tar.gz
if: ${{ matrix.python-version == 3.9 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }}
Deprecation_Messages_and_Coverage:
needs: [Checks, MachineLearning, Tutorials]
runs-on: ubuntu-latest
Expand Down
22 changes: 11 additions & 11 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
queue_rules:
- name: automerge
conditions:
- check-success=Deprecation_Messages_and_Coverage (3.9)

pull_request_rules:
- name: automatic merge on CI success and review
conditions:
queue_conditions:
- check-success=Deprecation_Messages_and_Coverage (3.9)
- "#approved-reviews-by>=1"
- label=automerge
- label!=on hold
actions:
queue:
name: automerge
method: squash
merge_conditions:
- check-success=Deprecation_Messages_and_Coverage (3.9)
merge_method: squash

pull_request_rules:
- name: backport
conditions:
- label=stable backport potential
actions:
backport:
branches:
- stable/0.7
- stable/0.8
- name: automatic merge on CI success and review
conditions: []
actions:
queue:
2 changes: 2 additions & 0 deletions .pylintdict
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ dp
dt
eda
edaspy
egger
eigen
eigenphase
Expand Down Expand Up @@ -576,6 +577,7 @@ vatan
vec
vectorized
veeravalli
vicente
vicentini
vigo
ville
Expand Down
6 changes: 6 additions & 0 deletions docs/apidocs/qiskit_machine_learning.gradients.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _qiskit-machine-learning-gradients:

.. automodule:: qiskit_machine_learning.gradients
:no-members:
:no-inherited-members:
:no-special-members:
6 changes: 6 additions & 0 deletions docs/apidocs/qiskit_machine_learning.optimizers.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _qiskit-machine-learning-optimizers:

.. automodule:: qiskit_machine_learning.optimizers
:no-members:
:no-inherited-members:
:no-special-members:
6 changes: 6 additions & 0 deletions docs/apidocs/qiskit_machine_learning.state_fidelities.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _qiskit-machine-learning-state_fidelities:

.. automodule:: qiskit_machine_learning.state_fidelities
:no-members:
:no-inherited-members:
:no-special-members:
Loading

0 comments on commit 3e446fd

Please sign in to comment.