sf

The Strawberry Fields codebase includes a number of complementary components. These can be separated into frontend components, applications layer, and backend components (all found within the strawberryfields.backends submodule).

../_images/sfcomponents.svg

Functions

version()

Version number of Strawberry Fields.

save(f, prog)

Saves a quantum program to a Blackbird .xbb file.

load(f)

Load a quantum program from a Blackbird .xbb file.

about()

Strawberry Fields information.

cite()

Prints the BibTeX citation for Strawberry Fields.

ping()

Tests the connection to the remote backend.

store_account(authentication_token[, …])

Configure Strawberry Fields for access to the Xanadu cloud platform by saving your account credentials.

active_configs([filename])

Prints the filepaths for existing configuration files to the standard output and marks the one that is active.

reset_config([filename])

Delete all active configuration files

delete_config([filename, directory])

Delete a configuration file.

Classes

Engine(backend, *[, backend_options])

Local quantum program executor engine.

RemoteEngine(target[, connection, …])

A quantum program executor engine that provides a simple interface for running remote jobs in a blocking or non-blocking manner.

Program(num_subsystems[, name])

Represents a photonic quantum circuit.

TDMProgram(N[, name])

Represents a photonic quantum circuit in the time domain encoding.

Contents