sf.io

Warning

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

See the 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

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.

loads(s)

Load a quantum program from a string.

Contents