Source to detector simulation of quantum photonic integrated circuits | Synapse