Time-bin encoding for optical quantum computing