At first glance, it might be that you have an older version of Strawberry Fields (which performs the underlying GBS simulations) installed. Could you try upgrading strawberryfields and pennylane-sf via pip and see if the problem remains?
Dear colleagues. Thanks for the reply. The solution worked like a charm
by updating the package “pennylane-sf” and its dependency, the package “numba”. I’ve tested the code posted in the article and it worked OK.