Using Strawberry Fields
Development
API
sample_to_orbit
Provides the orbit corresponding to a given sample.
Example usage:
>>> sample = [1, 2, 0, 0, 1, 1, 0, 3] >>> sample_to_orbit(sample) [3, 2, 1, 1, 1]
sample (list[int]) – a sample from GBS
the orbit of the sample
list[int]