Ejemplo n.º 1
0
 def _create_result(self):
     """
     create the result object
     and set the initial_amps attribute as the current amplitudes
     """
     result = optimresult.OptimResult()
     result.initial_amps = self.dynamics.ctrl_amps.copy()
     result.time = self.dynamics.time
     return result
Ejemplo n.º 2
0
 def _create_result(self):
     """
     create the result object
     and set the initial_amps attribute as the current amplitudes
     """
     result = optimresult.OptimResult()
     result.initial_fid_err = self.dynamics.fid_computer.get_fid_err()
     result.initial_amps = self.dynamics.ctrl_amps.copy()
     result.evo_full_initial = self.dynamics.full_evo.copy()
     result.time = self.dynamics.time.copy()
     result.optimizer = self
     return result