Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.26 KB

optimization-rangeschedule.md

File metadata and controls

41 lines (31 loc) · 1.26 KB
author description ms.author ms.date ms.service ms.subservice ms.topic title uid
danielstocker
Reference for azure.quantum.optimization.RangeSchedule
dasto
03/02/2021
azure-quantum
optimization
reference
Quantum optimization range schedule
microsoft.quantum.optimization.rangeschedule

Quantum optimization range schedule

RangeSchedule

from azure.quantum.optimization import RangeSchedule

Some solvers allow you to specify an instance of the RangeSchedule class as an input. A RangeSchedule can be created with two different types of schedules (either linear or geometric). We recommend reviewing our Solver Inputs documentation for more details.

Constructor

  • schedule_type: This is a string indicating the type of schedule. The accepted values are linear and geometric.
  • initial: A floating point value indicating the initial value of the schedule.
  • final: A floating point value indicating the final value of the schedule.

For instance, if you want to create a linear range schedule that increases from 0 to 5 over time:

RangeSchedule("linear", 0, 5)

Or, if you want to create a geometric range schedule that decreases from 1 to 0:

RangeSchedule("geometric", 1, 0)