Hello are there tutorials available for performing non-Gaussian state preparation with a GBS device using the latest version of the MrMustard library? I am trying to investigate the capabilities of MrMustard for heralding GKP states using GBS. This paper (in particular Fig. 3) seems to suggest this is possible but the API for the code snippets in the paper seem to be older than the current version of MrMustard. The code here does not seem to work with the latest version (0.7.3) either and results in the following error:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
File ~/.local/lib/python3.10/site-packages/mrmustard/math/backend_manager.py:174, in BackendManager.change_backend(self, name)
173 try:
--> 174 backend = getattr(module, object)()
175 except AttributeError:
176 # lazy import
AttributeError: module 'mrmustard.math.backend_tensorflow' has no attribute 'BackendTensorflow'
During handling of the above exception, another exception occurred:
AttributeError Traceback (most recent call last)
Cell In[2], line 6
3 from mrmustard.physics import fidelity
4 from mrmustard.training import Optimizer
----> 6 math.change_backend("tensorflow")
8 D = Dgate(x = 0.1, y = -0.5, x_trainable=True, y_trainable=True)
9 L = Attenuator(transmissivity=0.5)
File ~/.local/lib/python3.10/site-packages/mrmustard/math/backend_manager.py:179, in BackendManager.change_backend(self, name)
177 loader = all_modules[name]["loader"]
178 loader.exec_module(module)
--> 179 backend = getattr(module, object)()
181 # switch backend
...
(...)
82 a scalar tensor.
83 """
AttributeError: module 'keras._tf_keras.keras' has no attribute '__internal__'