## Initialize the Photon Functions

Evaluate this code to initialize the photon functions.

## A Box To Run Photon Functions

`generate_photon(basis,bit)`

will generate a photon with value `bit`

(0 or 1) in basis `basis`

(“L” or “V”)

`measure_photon(basis,ob)`

will measure the photon `ob`

in basis `basis`

(“L” or “V”); this prints the result (0 or 1) and returns the coded up resulting photon