# Time 10, Exercise 2: counting caesium cycles and how long a clock lasts before it is a second out SECONDS_PER_YEAR = 365.25 * 86400 caesium = 9192631770 # periods of the caesium-133 radiation in one SI second crystal = 32768 # watch crystal vibrations in one second # Part 1: how long is one caesium period, and how many fit in a nanosecond? period = 1 / caesium print("one caesium period:", period, "s") print("periods in one nanosecond:", round(caesium * 1e-9, 2)) # Part 2: how many caesium periods happen during one crystal vibration? print("caesium periods per crystal vibration:", round(caesium / crystal, 1)) # Part 3: if a clock is wrong by a steady fraction e, how long before it is a second out? for name, e in (("cheap quartz, about 1e-5", 1e-5), ("early caesium, 1e-9", 1e-9), ("caesium fountain, 1e-15", 1e-15), ("optical clock, 1e-18", 1e-18)): seconds = 1 / e years = seconds / SECONDS_PER_YEAR print(name, ":", f"{seconds:.3g}", "s =", f"{years:.3g}", "years to drift one second") # Part 4: an optical clock ticks at about 4.3e14 hertz. How many times faster than caesium? optical = 4.3e14 print("optical ticks per caesium tick:", round(optical / caesium)) # Output when run: # one caesium period: 1.0878277570776665e-10 s # periods in one nanosecond: 9.19 # caesium periods per crystal vibration: 280536.9 # cheap quartz, about 1e-5 : 1e+05 s = 0.00317 years to drift one second # early caesium, 1e-9 : 1e+09 s = 31.7 years to drift one second # caesium fountain, 1e-15 : 1e+15 s = 3.17e+07 years to drift one second # optical clock, 1e-18 : 1e+18 s = 3.17e+10 years to drift one second # optical ticks per caesium tick: 46777 # Reading the output: 0.00317 years is about 1.2 days: at 1e-5 a clock gains 0.864 s a day, so a whole second takes 1 / 0.864 = 1.16 days. # An optical clock good to 1e-18 would be a second out only after about 32 billion years, # more than twice the age of the universe (about 13.8 billion years). Its ticks are about # 47 thousand times finer than caesium's, which is part of why it can be steadier.