From df5812eec4fb493da6a547e58326663f9b809e42 Mon Sep 17 00:00:00 2001 From: antalszava Date: Wed, 11 Mar 2020 11:05:52 -0400 Subject: [PATCH 1/2] Updating io.load docstring --- strawberryfields/io.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/strawberryfields/io.py b/strawberryfields/io.py index 52eeb23f6..c4b4c8e44 100644 --- a/strawberryfields/io.py +++ b/strawberryfields/io.py @@ -241,10 +241,9 @@ def load(f): MeasureFock | (q[0], q[1], q[2]) Args: - f (Union[file, str, pathlib.Path]): File or filename to which - the data is saved. If file is a file-object, then the filename - is unchanged. If file is a string or Path, a .xbb extension will - be appended to the file name if it does not already have one. + f (Union[file, str, pathlib.Path]): File or filename from which + the data is loaded. If file is a string or Path, value with the + .xbb extension is expected. Returns: prog (Program): Strawberry Fields program From 471b71a18fc645db7b8b5c4bfb477f61290eef68 Mon Sep 17 00:00:00 2001 From: antalszava Date: Wed, 11 Mar 2020 11:08:11 -0400 Subject: [PATCH 2/2] Updating io.load docstring --- strawberryfields/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strawberryfields/io.py b/strawberryfields/io.py index c4b4c8e44..af973ccab 100644 --- a/strawberryfields/io.py +++ b/strawberryfields/io.py @@ -242,7 +242,7 @@ def load(f): Args: f (Union[file, str, pathlib.Path]): File or filename from which - the data is loaded. If file is a string or Path, value with the + the data is loaded. If file is a string or Path, a value with the .xbb extension is expected. Returns: