Adding displacment when sampling

When sampling from a certain Gaussian state using:

sample.sample(A, n_mean, samples, threshold=False)

Is there a way we can add displacement to the modes of the simulated boson sampler?

Hi @Amanuel, the way sample.sample is coded it doesn’t allow you to add displacements. You could copy the source-code and add this functionality though.

I hope this helps.