Results.all_samples for X8?

Does the all_samples function work for the remote engines? https://strawberryfields.readthedocs.io/en/stable/code/api/strawberryfields.api.Result.html

Hi @Samarth_Sandeep!

The remote simulon_jet device doesn’t return all_samples , so I imagine X8 wouldn’t either.

Calling results.samples should be sufficient on any device (local or remote). Have you tried using results.samples?

My apologies for not answering this earlier! Yes, and it works fine, and I can just loop it to make a collection, but since the code was there, I thought I would give it a shot

No problem @Samarth_Sandeep! It’s a very good practice to explore what’s available. Let us know if you have any more questions!

1 Like