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 |
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.
schedule_type
: This is a string indicating the type of schedule. The accepted values arelinear
andgeometric
.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)