Template Function libwalrus::interferometer_cpp

Function Documentation

template<typename T>
T *libwalrus::interferometer_cpp(const std::vector<T> &R, const int &cutoff)

Returns the matrix elements of an interferometer parametrized in terms of its R matrix

Parameters
  • R: a flattened vector of size \(n^2\), representing a \(n\times n\) symmetric matrix.

  • cutoff: highest number of photons to be resolved.