For Each Control Value

Description

The For Each Control Value node takes a control path and runs a time loop over the control values contained within the the range of the discretized control path. 

Input

The node has the following input: 

  • Control: This input defines a control path defined in the Control node.

Content 

This node is a time loop which displays the time based on the time dimensions and timestep defined in the Time node. For every value of $t$, the node outputs the control value contained within the the range of the discretized control path. 

Output 

  • Time (t): The scalar values of the time axis
  • Control value (u1): The control value corresponding to time $t$

Example 

In the example below, a harmonic oscillator is being controlled by the path designed in the Control node. The For Each Control Value node inputs the control path, initial and target states and the values of the time and space dimension. The Potential node inputs the control values at every time $t$ as the time loop runs. After time evolution, the overlap between the target state and the time-evolved state is calculated in the Fidelity node.