You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor how mean orbital occupancies are specified throughout API (#151)
* Flip orbital occupancies inside the solver.
* Make type right
* style
* Remove flip function from docs files
* oo
* update reno
* Return 1 1D array for the occupancies
* peer review
* Fix notebooks
* typo
* mypy
* lint
Removed :func:`qiskit_addon_sqd.fermion.flip_orbital_occupancies`. Users no longer need to flip the orbital occupancies output from :func:`qiskit_addon_sqd.fermion.solve_fermion` and :func:`qiskit_addon_sqd.fermion.optimize_orbitals`; they will be output in the order expected by :func:`qiskit_addon_sqd.configuration_recovery.recover_configurations`: ``tuple(array([occ_a_0, ..., occ_a_N]), array([occ_b_0, ..., occ_b_N]))``.
5
+
deprecations:
6
+
- |
7
+
The ``avg_occupancies`` argument to :func:`qiskit_addon_sqd.configuration_recovery.recover_configurations` should now be a length-2 tuple containing the spin-up and spin-down occupancies, respectively.
8
+
9
+
Old format: ``array([occ_b_N, ..., occ_b_0, occ_a_N, ..., occ_a_0])``
10
+
11
+
New format: ``tuple(array([occ_a_0, ..., occ_a_N]), array([occ_b_0, ..., occ_b_N]))``
0 commit comments