A homodyne detector integrated onto a photonic chip for measuring quantum states and generating random numbers. (7th February 2018)