Start by bringing water and rosemary to a boil. Reduce the heat, incorporate sugar, and stir until completely dissolved. Allow the mixture to cool, then strain out any remaining rosemary residues. Finally, bottle the infusion and store it in the refrigerator for later use.