Gaussian beam codes