Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare 0.6 release #59

Merged
merged 3 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ pull_request_rules:
actions:
backport:
branches:
- stable/0.5
- stable/0.6
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 = ...
Expand Down
4 changes: 4 additions & 0 deletions releasenotes/notes/0.6/divzero-a6090f6555d1c716.yaml
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 0 additions & 4 deletions releasenotes/notes/divzero-a6090f6555d1c716.yaml

This file was deleted.