tequila.optimizers.optimizer_phoenics.OptimizerPhoenics

class tequila.optimizers.optimizer_phoenics.OptimizerPhoenics(maxiter, backend=None, save_history=True, minimize=True, samples=None, silent=None, noise=None, device=None)[source]

Bases: tequila.optimizers.optimizer_base.Optimizer

Wrapper to allow optimization of objectives with Phoenics, a bayesian optimizer.

See: https://github.com/aspuru-guzik-group/phoenics

__init__(maxiter, backend=None, save_history=True, minimize=True, samples=None, silent=None, noise=None, device=None)[source]

initialize an optimizer.

Parameters
  • backend (str, optional:) – a quantum backend to use. None means autopick.

  • maxiter (int, optional:) – maximum number of iterations to performed. Note: overwrites attribute of same name to 100, not None, if default.

  • samples (int, optional:) – number of samples to simulate measurement of objectives with. Default: none, i.e full wavefunction simulation.

  • device (optional:) – changeable type. The device on which to perform (or, simulate performing) actual quantum computation. Default None will use the basic, un-restricted simulators of backend.

  • noise (optional:) – NoiseModel object or str ‘device’, being either a custom noisemodel or the instruction to use that of the emulated device. Default value none means: simulate without any noise.

  • save_history (bool: Default = True:) – whether or not to save history during optimization. Defaults to true.

  • silent (bool: Default = False:) – whether or not to be verbose during iterations of optimization. False indicates verbosity.

  • print_level (int: Default = 99:) – The degree of verbosity during print. Meaningless on in base.

  • args

  • kwargs

Methods

available_methods

compile_gradient

Convenience function to compile gradient objects and relavant types.

compile_hessian

Convenience function to compile hessians for optimizers which require it.

compile_objective

Convenience function to wrap over compile; for use by inheritors.

initialize_variables

Convenience function to format the variables of some objective recieved in calls to optimizers.

reset_history

Reset the optimizer history.