Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 270 Bytes

File metadata and controls

8 lines (6 loc) · 270 Bytes

Train a state preparation circuit

The circuit ansatz is predefined. We can train the parameters in the ansatz to prepare an arbitrary state from the inintial all zero state.

The gradients are obtained with backpropagation.

python train_state_prep.py