Simulation of chiral edge states in a quantum system