sf.io

Warning

Unless you are a Strawberry Fields developer, you likely do not need to use these classes directly.

See the general save() and load() functions for saving/loading Strawberry Fields quantum programs.

This module contains functions for loading and saving Strawberry Fields Program objects from/to Blackbird scripts.

Functions

load(f)

Load a quantum program from a Blackbird .xbb file.

loads(s)

Load a quantum program from a string.

save(f, prog)

Saves a quantum program to a Blackbird .xbb file.

to_blackbird(prog[, version])

Convert a Strawberry Fields Program to a Blackbird Program.

to_program(bb)

Convert a Blackbird Program to a Strawberry Fields Program.

Contents