Skip to content

Commit 094b994

Browse files
edoaltamuraFrancescaSchiavOkuyanBogadeclanmillar
authored
Migrating qiskit_algorithms (#817)
* Update README.md * Generalize the Einstein summation signature * Add reno * Update Copyright * Rename and add test * Update Copyright * Add docstring for `test_get_einsum_signature` * Correct spelling * Disable spellcheck for comments * Add `docstring` in pylint dict * Delete example in docstring * Add Einstein in pylint dict * Add full use case in einsum dict * Spelling and type ignore * Spelling and type ignore * Spelling and type ignore * Spelling and type ignore * Spelling and type ignore * Remove for loop in einsum function and remove Literal arguments (1/2) * Remove for loop in einsum function and remove Literal arguments (1/2) * Remove for loop in einsum function and remove Literal arguments (2/2) * Update RuntimeError msg * Update RuntimeError msg - line too long * Trigger CI * Merge algos, globals.random to fix * Fixed `algorithms_globals` * Import /tests and run CI locally * Fix copyrights and some spellings * Ignore mypy in 8 instances * Merge spell dicts * Black reformatting * Black reformatting * Add reno * Lint sanitize * Pylint * Pylint * Pylint * Pylint * Fix relative imports in tutorials * Fix relative imports in tutorials * Remove algorithms from Jupyter magic methods * Temporarily disable "Run stable tutorials" tests * Change the docstrings with imports from qiskit_algorithms * Styling * Update qiskit_machine_learning/optimizers/gradient_descent.py Co-authored-by: Declan Millar <declan.millar@ibm.com> * Update qiskit_machine_learning/optimizers/optimizer_utils/learning_rate.py Co-authored-by: Declan Millar <declan.millar@ibm.com> * Add more tests for utils * Add more tests for optimizers: adam, bobyqa, gsls and imfil * Fix random seed for volatile optimizers * Fix random seed for volatile optimizers * Add more tests * Pylint dict * Activate scikit-quant-0.8.2 * Remove scikit-quant methods * Remove scikit-quant methods (2) * Edit the release notes and Qiskit version 1+ * Edit the release notes and Qiskit version 1+ * Add Qiskit 1.0 upgrade in reno * Add Qiskit 1.0 upgrade in reno * Add Qiskit 1.0 upgrade in reno * Apply line breaks * Restructure line breaks --------- Co-authored-by: FrancescaSchiav <FrancescaSchiav@users.noreply.github.com> Co-authored-by: M. Emre Sahin <40424147+OkuyanBoga@users.noreply.github.com> Co-authored-by: Declan Millar <declan.millar@ibm.com>
1 parent 89792d2 commit 094b994

File tree

151 files changed

+13997
-234
lines changed

Some content is hidden

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

151 files changed

+13997
-234
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -229,36 +229,36 @@ jobs:
229229
with:
230230
name: tutorials${{ matrix.python-version }}
231231
path: docs/_build/html/artifacts/tutorials.tar.gz
232-
- name: Run stable tutorials
233-
env:
234-
QISKIT_PARALLEL: False
235-
QISKIT_DOCS_BUILD_TUTORIALS: 'always'
236-
run: |
237-
# clean last sphinx output
238-
make clean_sphinx
239-
# get current version
240-
version=$(pip show qiskit-machine-learning | awk -F. '/^Version:/ { print substr($1,10), $2-1 }' OFS=.)
241-
# download stable version
242-
wget https://codeload.github.com/qiskit-community/qiskit-machine-learning/zip/stable/$version -O /tmp/repo.zip
243-
unzip /tmp/repo.zip -d /tmp/
244-
# copy stable tutorials to main tutorials
245-
cp -R /tmp/qiskit-machine-learning-stable-$version/docs/tutorials/* docs/tutorials
246-
# run tutorials and zip results
247-
echo "earliest_version: 0.1.0" >> releasenotes/config.yaml
248-
# ignore unreleased/untagged notes
249-
tools/ignore_untagged_notes.sh
250-
make html
251-
cd docs/_build/html
252-
mkdir artifacts
253-
tar -zcvf artifacts/tutorials.tar.gz --exclude=./artifacts .
254-
if: ${{ matrix.python-version == 3.8 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }}
255-
shell: bash
256-
- name: Run upload stable tutorials
257-
uses: actions/upload-artifact@v4
258-
with:
259-
name: tutorials-stable${{ matrix.python-version }}
260-
path: docs/_build/html/artifacts/tutorials.tar.gz
261-
if: ${{ matrix.python-version == 3.8 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }}
232+
# - name: Run stable tutorials
233+
# env:
234+
# QISKIT_PARALLEL: False
235+
# QISKIT_DOCS_BUILD_TUTORIALS: 'always'
236+
# run: |
237+
# # clean last sphinx output
238+
# make clean_sphinx
239+
# # get current version
240+
# version=$(pip show qiskit-machine-learning | awk -F. '/^Version:/ { print substr($1,10), $2-1 }' OFS=.)
241+
# # download stable version
242+
# wget https://codeload.github.com/qiskit-community/qiskit-machine-learning/zip/stable/$version -O /tmp/repo.zip
243+
# unzip /tmp/repo.zip -d /tmp/
244+
# # copy stable tutorials to main tutorials
245+
# cp -R /tmp/qiskit-machine-learning-stable-$version/docs/tutorials/* docs/tutorials
246+
# # run tutorials and zip results
247+
# echo "earliest_version: 0.1.0" >> releasenotes/config.yaml
248+
# # ignore unreleased/untagged notes
249+
# tools/ignore_untagged_notes.sh
250+
# make html
251+
# cd docs/_build/html
252+
# mkdir artifacts
253+
# tar -zcvf artifacts/tutorials.tar.gz --exclude=./artifacts .
254+
# if: ${{ matrix.python-version == 3.8 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }}
255+
# shell: bash
256+
# - name: Run upload stable tutorials
257+
# uses: actions/upload-artifact@v4
258+
# with:
259+
# name: tutorials-stable${{ matrix.python-version }}
260+
# path: docs/_build/html/artifacts/tutorials.tar.gz
261+
# if: ${{ matrix.python-version == 3.8 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }}
262262
Deprecation_Messages_and_Coverage:
263263
needs: [Checks, MachineLearning, Tutorials]
264264
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)