Hello!
I would like to build a siamese quantum neural network (as inputs I would like to start with MNIST dataset). My main problem is the Differencing layer (see picture). In the differencing layer we calculate the difference of these two dense layers and output the result to a single neuron with sigmoid activation function(0 to 1).
Any ideas on how to implement that? Thank you in advance! (any ideas on the general architecture would be appreciated)
p.s. for more information on siamese neural networks: Siamese Networks. Line by line explanation for beginners | by Krishna Prasad | Towards Data Science