Skip to content

Latest commit

 

History

History
 
 

train_state_prep

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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