Yao.jl icon indicating copy to clipboard operation
Yao.jl copied to clipboard

automatic diffirentaion through circuit with conditional gate

Open rezah opened this issue 3 years ago • 2 comments

It is possible to do automatic differentiation through a circuit with conditional gates. I mean variationally optimize the circuit with gates that are applied based on themed-circuit measurement.

rezah avatar Jul 20 '22 19:07 rezah

It is hard to do it directly. Try using lower level interfaces like apply and mat. Their backward rules are ported to ChainRules. Maybe you can try writing the loss using Zygote.

GiggleLiu avatar Aug 05 '22 09:08 GiggleLiu

Please check this issues: #323

GiggleLiu avatar Aug 05 '22 09:08 GiggleLiu