Multi-product formulas (MPF) release notes
0.3.0
New Features
-
TeNPy can disable
Szconservation. Previously, theinitialize_from_lattice()method did not support this, but a new keyword argumentconservehas been added which allows the disabling ofSzconservation. The default remains to beTrue. -
Guards against unexpected behavior when
N_steps != 1inqiskit_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_oddattribute ofquimb_layers.LayerModelhas been removed. The internal workings have been refactored to ensure that data reported by itstermsattribute (which is inherited from the base class) is already taking thekeep_only_oddargument of thequimb_layers.LayerModel.from_quantum_circuit()constructor method. -
The
scaling_factorkeyword argument of thefrom_quantum_circuitconstructor 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 providingtimevalues 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_DECIMALSvalue.
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_lsefrom qiskit_addon_mpf.static import setup_static_lsefrom qiskit_addon_mpf.static import LSEfrom qiskit_addon_mpf.costs import LSEfrom qiskit_addon_mpf.static import setup_exact_modelfrom qiskit_addon_mpf.costs import setup_exact_problemfrom qiskit_addon_mpf.static import setup_approximate_modelfrom qiskit_addon_mpf.costs import setup_sum_of_squares_problem