MultipleLaunchesAnalyzer: running several optimizations and keeping the best one

class qat.plugins.MultipleLaunchesAnalyzer(n_runs: Optional[int] = 5, verbose: Optional[bool] = False)

A very simple plugin that duplicates each job of the batch and for each keeps the result associated to the lowest observed value.

The plugin may be used to carry out the batch optimization of the angles of a fixed ansatz starting from different random initializations. To this end, the stack upstream must include a VQE optimizer instantiated without any starting point.

  • n_runs (Optional[int]) – Number of initializations investigated. Defaults to 5.

  • verbose (Optional[bool]) – Print infos. Defaults to False.

This plugin used in the following notebook: