Saves this model to the specified file. Internally, the model is serialized via
dill. All parameters are saved, including a quantum instance that is referenced by internal objects. That means if a model is loaded from a file and is used, for instance, for inference, the same quantum instance and a corresponding backend will be used even if a cloud backend was used.
str) – a file name or path where to save the model.
- Dönüş türü