Influence of topology in a quantum ring