1Variational Training
A QNN is essentially a function f(x, w) that maps input data x to an output using trainable parameters w. This is identical to classical deep learning but executed on a quantum state.
2The Parameter Shift Rule
Since we cannot 'look inside' a quantum computer without collapsing the state, we use the parameter shift rule to calculate gradients by shifting the weights and measuring the difference.
