Hello! Excellent work with SF and PL.
I just started playing around with SF and tried the X8 tutorial: (https://strawberryfields.ai/photonics/demos/tutorial_X8.html)
When I ran it, I got the following error message:
Traceback (most recent call last):
File "C:\Users\dpope\Documents\personal\QML\strawberryFields\most recently downloaded\tutorial_X8.py", line 349, in <module>
result = job.result
File "C:\Users\dpope\Anaconda3\lib\site-packages\strawberryfields\api\job.py", line 119, in result
raise AttributeError(
AttributeError: The result is undefined for jobs that are not completed (current status: open)
Just curious but is this what I should be getting? I’m using SF 0.19
It’s totally not a problem as I can just comment out the following two lines & then everything works OK:
result = job.result
print(result.samples.shape)
(Or change the code to:
if job.status=="complete":
result = job.result
print(result.samples.shape)
else:
print("Job has not been completed."))
It’s just that I got the impression from the documentation that I should be getting something slightly different. Specifically, reading the “Job management” section of the X8 tutorial.
Anyway, many thanks!
Damian