Quantum generative adversarial network for discrete data