-
I want to optimise the parameters in a tensor network with autodiff. The tensor network is contructed from gates like What would be the best way to only optimise Thanks a lot in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Actually, I figured out that this is quite simple to workaround - by simply defining a def helper_function(params):
return qtn.circuit.rz_gate_param_gen([params[0] * local_constant]])
circuit.apply_gate_raw(qtn.array_ops.PArray(helper_function, [shared_variable]), ..., parametrize=True) |
Beta Was this translation helpful? Give feedback.
Actually, I figured out that this is quite simple to workaround - by simply defining a
PArray
with a custom function. Conceptually something like: