On the sum of two squares function | Synapse