Research Article
Quantum SoC and On-Chip Circuit Synthesis in the NISQ Era
Algorithm 1
Optimization of continuous parameter based on gradient.
| | Input: Input unitary transformation ; trainable unitary sequence ; gradient iterate number ; maximum iterate number ; error tolerance ; learning rate ; | | | Output: Optimal parameter ; ; ; | | (1) | | | (2) | While and do | | (3) | randomly choose the parameter | | (4) | fordo | | (5) | compute cost function | | (6) | compute gradient | | (7) | update | | (8) | end | | (9) | compute cost function | | (10) | ifthen | | (11) | | | (12) | | | (13) | end | | (14) | | | (15) | end | | (16) | return |
|