diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index cb9348c..b60b65c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -42,7 +42,7 @@ jobs: deploy: name: Deploy docs - if: ${{ github.ref == 'refs/heads/stable/0.5' }} + if: ${{ github.ref == 'refs/heads/stable/0.6' }} needs: build permissions: pages: write diff --git a/.mergify.yml b/.mergify.yml index aebea99..857b1c7 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -5,4 +5,4 @@ pull_request_rules: actions: backport: branches: - - stable/0.5 + - stable/0.6 diff --git a/pyproject.toml b/pyproject.toml index 9ca5d9f..6c47eb2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "qiskit-addon-sqd" -version = "0.5.0" +version = "0.6.0" readme = "README.md" description = "Classically postprocess noisy quantum samples to yield more accurate energy estimations" license = {file = "LICENSE.txt"} diff --git a/releasenotes/notes/depr-bs-mat-to-addr-169444fb9cb41808.yaml b/releasenotes/notes/0.6/depr-bs-mat-to-addr-169444fb9cb41808.yaml similarity index 85% rename from releasenotes/notes/depr-bs-mat-to-addr-169444fb9cb41808.yaml rename to releasenotes/notes/0.6/depr-bs-mat-to-addr-169444fb9cb41808.yaml index 912fe44..ab1d5f1 100644 --- a/releasenotes/notes/depr-bs-mat-to-addr-169444fb9cb41808.yaml +++ b/releasenotes/notes/0.6/depr-bs-mat-to-addr-169444fb9cb41808.yaml @@ -7,8 +7,10 @@ deprecations: .. code-block:: python - from qiskit_addon_sqd.fermion.bitstring_matrix_to_sorted_addresses - from qiskit_addon_sqd.fermion.bitstring_matrix_to_ci_strs + from qiskit_addon_sqd.fermion import ( + bitstring_matrix_to_sorted_addresses, + bitstring_matrix_to_ci_strs, + ) # DEPRECATED CODE bs_matrix = ... diff --git a/releasenotes/notes/deprecate-addr-526f0c5bf681f739.yaml b/releasenotes/notes/0.6/deprecate-addr-526f0c5bf681f739.yaml similarity index 90% rename from releasenotes/notes/deprecate-addr-526f0c5bf681f739.yaml rename to releasenotes/notes/0.6/deprecate-addr-526f0c5bf681f739.yaml index 4ba5c4d..ce79542 100644 --- a/releasenotes/notes/deprecate-addr-526f0c5bf681f739.yaml +++ b/releasenotes/notes/0.6/deprecate-addr-526f0c5bf681f739.yaml @@ -9,9 +9,13 @@ upgrade: To upgrade, change this code .. code-block:: python - - from qiskit_addon_sqd.fermion import bitstring_matrix_to_sorted_addresses - from qiskit_addon_sqd.fermion import solve_fermion, optimize_orbitals + + # DEPRECATED CODE + from qiskit_addon_sqd.fermion import ( + bitstring_matrix_to_sorted_addresses, + solve_fermion, + optimize_orbitals, + ) bitstring_matrix = ... addresses = bitstring_matrix_to_sorted_addresses(bitstring_matrix, open_shell=open_shell) @@ -27,10 +31,9 @@ upgrade: eri=eri, ) - ...to this code - - .. code-block:: python + ### SHOULD BECOME ### + # NEW CODE from qiskit_addon_sqd.fermion import solve_fermion, optimize_orbitals bitstring_matrix = ... diff --git a/releasenotes/notes/0.6/divzero-a6090f6555d1c716.yaml b/releasenotes/notes/0.6/divzero-a6090f6555d1c716.yaml new file mode 100644 index 0000000..f82d84f --- /dev/null +++ b/releasenotes/notes/0.6/divzero-a6090f6555d1c716.yaml @@ -0,0 +1,4 @@ +--- +fixes: + - | + Fixed a bug in :func:`qiskit_addon_sqd.configuration_recovery.recover_configurations` which would sometimes cause a divide-by-zero error when calculating individual bit-flip probability. diff --git a/releasenotes/notes/no-array2string-efb9b050ca6efc29.yaml b/releasenotes/notes/0.6/no-array2string-efb9b050ca6efc29.yaml similarity index 100% rename from releasenotes/notes/no-array2string-efb9b050ca6efc29.yaml rename to releasenotes/notes/0.6/no-array2string-efb9b050ca6efc29.yaml diff --git a/releasenotes/notes/divzero-a6090f6555d1c716.yaml b/releasenotes/notes/divzero-a6090f6555d1c716.yaml deleted file mode 100644 index b58cd5e..0000000 --- a/releasenotes/notes/divzero-a6090f6555d1c716.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -fixes: - - | - Fixed a bug in :func:`qiskit_addon_sqd.configuration_recover.recover_configurations` which would sometimes cause a divide-by-zero error when calculating individual bit-flip probability.