Neural networks for quantum inverse problems