An quantum algorithm for feedforward neural networks tested on existing quantum hardware