seemps.analysis.hdaf.hdaf_mpo#
- seemps.analysis.hdaf.hdaf_mpo(num_qubits: int, dx: float | floating, M: int = 10, s0: float | floating | None = None, time: float | floating | complex = 0.0, derivative: int = 0, periodic: bool = True, strategy: Strategy = DEFAULT_STRATEGY) MPO[source]#
Constructs a Matrix Product Operator (MPO) of Hermite Distributed Approximating Functionals (HDAFs). The operator may approximate the identity, a derivative or the free propagator, depending on the values of the derivative and time parameters.
- Parameters:
- num_qubits
int The number of qubits to discretize the system.
- dx
Float The grid stepsize.
- M
int, default=10 The order of the highest Hermite polynomial (must be an even integer).
- s0
Float|None, default=None The width of the HDAF Gaussian weight. If not provided, a suitable width will be computed based on M and dx.
- time
Float, default=0.0 The evolution time of the Free Propagator to approximate.
- derivative
int, default=0 The order of the derivative to approximate.
- periodicbool, default=True
Whether the grid follows perioidic boundary conditions.
- strategy
Strategy, default=DEFAULT_STRATEGY The strategy for the returned MPO. Values of the HDAF below the simplification tolerance of the strategy will be discarded.
- num_qubits
- Returns:
- mpo:
MPO The HDAF approximation to an operator specified by the input parameters.
- mpo: