Implementation of a network of interconnected beamsplitters for coherent state evolution (strawberryfields)

Hey @Antonio_Aguiar! You can reduce the cutoff_dim, but that isn’t ideal :confused:. Do you need the fock backend? The gaussian backend might be better here — it’s exact and less computationally intensive than an equivalent fock calculation. You would just need to do the following:

eng = sf.Engine('gaussian')

Although this isn’t a problem with your example, the gaussian backend cannot represent non-gaussian states :smile:. You can find out more information on the various backends available here: Circuits — Strawberry Fields 0.23.0 documentation