Isoperiodic classical systems and their quantum counterparts