I wish you all happy holidays and Merry Xmas!
the quantum neural network tutorial uses the state method as an exact measurement. i tried to make a very simple version of it i.e. single layer and no inputs and another version with a single input. then i tried to compute the gradients with respect to the samples. the measurement was homodyne.
the output from
to reproduce the error:
the cost function can be somthing like this:
tf.abs(tf.squeeze(results.samples) - 1)
the number of modes are 1
SF version is 0.16.0