Multi-product formulas (MPF) release notes
0.3.0
New Features
-
TeNPy can disable
Sz
conservation. Previously, theinitialize_from_lattice()
method did not support this, but a new keyword argumentconserve
has been added which allows the disabling ofSz
conservation. The default remains to beTrue
. -
Guards against unexpected behavior when
N_steps != 1
inqiskit_addon_mpf.backends.tenpy_layers.LayerwiseEvolver.evolve()
.
Upgrade Notes
-
This release adds support for Python 3.13. No code changes were necessary, so older releases are expected to work on Python 3.13 too.
-
This package is now compatible with Qiskit SDK 2.0.
-
The
keep_only_odd
attribute ofquimb_layers.LayerModel
has been removed. The internal workings have been refactored to ensure that data reported by itsterms
attribute (which is inherited from the base class) is already taking thekeep_only_odd
argument of thequimb_layers.LayerModel.from_quantum_circuit()
constructor method. -
The
scaling_factor
keyword argument of thefrom_quantum_circuit
constructor methods has been removed. It is not actually needed and was merely adding an additional (confusing) re-scaling.
Bug Fixes
- Fixes the
DynamicMPF.evolve()
method when providingtime
values with numerical inaccuracies (e.g.time=1.00000001
). Previously this could cause the LHS and RHS time evolvers to advance too far. The new default accuracy is 8 decimal places, but it may be configured via theDynamicMPF.TIME_DECIMALS
value.
0.2.0
New Features
- Adds the ability to compute dynamic (i.e. time-dependent) MPF coefficients. For more details, refer to
qiskit_addon_mpf.dynamic
.
Upgrade Notes
-
The code for the static MPF coefficients has been moved. It functions the same as before, but you have to update your imports and function names as summarized in the table below:
Old New from qiskit_addon_mpf.static import setup_lse
from qiskit_addon_mpf.static import setup_static_lse
from qiskit_addon_mpf.static import LSE
from qiskit_addon_mpf.costs import LSE
from qiskit_addon_mpf.static import setup_exact_model
from qiskit_addon_mpf.costs import setup_exact_problem
from qiskit_addon_mpf.static import setup_approximate_model
from qiskit_addon_mpf.costs import setup_sum_of_squares_problem