sf.backends.shared_ops

Common shared operations that can be used by backends

Functions

haar_measure(n)

A Random matrix distributed with the Haar measure.

save_bs_factors(prefac[, directory])

Saves precomputed beamsplitter factors in the Fock basis to a file.

save_squeeze_factors(prefac[, directory])

Saves precomputed squeeze factors in the Fock basis to a file.