| Algorithm 1 The optimization of the phase shifts of the STEs based on MO |
| Input: |
| 1: Initialize with random phases, |
| 2: repeat |
| 3: Select the step size |
| 4: Update according to (23) |
| 5: Update the Riemannian gradient according to (20)(21) |
| 6: Calculate from to |
| 7: Select Polak–Ribiere parameter |
| 8: Calculate the conjugate direction |
| 9: Update |
| 10: until a stopping condition is satisfied |
| Output: |