The last step's simulation put the gap's spread at 0.0100, 1 point. That spread is the gap's standard error: its standard deviation across repeated experiments of this size. You don't need a simulation to get it.
Each rate is an average of 0s and 1s, with variance p(1−p)/n. The variance of a difference of independent estimates is the sum of their variances. So the variance of p^B−p^A is
nApA(1−pA)+nBpB(1−pB)In words: each group adds its own rate's variance, p times 1−p over its users. The standard error is the square root of the sum.
With dozens of conversions in each group, not a handful, the difference is close to normal. So dividing it by its standard error gives a z score: how many standard errors the gap sits from 0.
In the editor, write null_se(rate, n_a, n_b): the standard error when both groups convert at one rate, as in the simulation.