Control for swing-up of an inverted pendulum using qubit neural network