Optimizer

class qctrl.dynamic.types.stochastic_optimization.Optimizer(*, adam=None, state=None)

Configuration for the optimizer in the stochastic optimization. Defaults to creating a new Adam optimizer. If set, exactly one field must be non-null.

Variables
  • adam (qctrl.dynamic.types.stochastic_optimization.Adam, optional) – Options for the Adam optimizer. Pass this field to use this optimizer.

  • state (str, optional) – Pass this field to resume a previous optimization. You can only resume a previous optimization if you pass the same graph.