mqt.yaqs.characterization.noise.optimization.loss¶
Trajectory-mismatch objective for analytical noise-parameter optimization.
Module Contents¶
- class TrajectoryLoss(*, ref_expectations: ndarray, propagator: Propagator)[source]¶
Mean-squared trajectory mismatch used by gradient-free optimizers.
- ref_traj_array¶
- propagator¶
- d¶
- loss_scale_factor¶
- x_to_noise_model(x: ndarray) NoiseModel[source]¶
Map a flat strength vector back to a
NoiseModel.- Parameters:
x – Process strength vector with length
self.d.- Returns:
Updated noise model.
- __call__(x: ndarray) float[source]¶
Evaluate the scaled mean-squared trajectory error.
- Parameters:
x – Compact strength vector.
- Returns:
Scaled mean-squared trajectory mismatch.
- Raises:
ValueError – If
xhas the wrong length.