Photonic circuits and probabilistic computing