Tomographer  v2.0
Tomographer C++ Framework Documentation
random_unitary.h File Reference

(v2.0)

Produce a random unitary according to the Haar measure. More...

#include <iostream>
#include <random>
#include <Eigen/Core>
#include <tomographer2/tools/eigenutil.h>
#include <tomographer2/tools/loggers.h>
#include <tomographer2/tools/cxxutil.h>
+ Include dependency graph for random_unitary.h:

Go to the source code of this file.

Namespaces

 Tomographer
 Base namespace for the Tomographer project.
 
 Tomographer::MathTools
 General math routines.
 

Functions

template<typename DerU , typename Rng , typename Log >
void Tomographer::MathTools::randomUnitary (Eigen::MatrixBase< DerU > &U, Rng &rng, Log &logger)
 Generate a Haar-distributed random unitary. More...
 
template<typename Der1 , typename Rng >
void Tomographer::MathTools::randomUnitary (Eigen::MatrixBase< Der1 > &U, Rng &rng)
 Overload of randomUnitary(U, rng, logger) which discards all logging messages.
 

Detailed Description

Produce a random unitary according to the Haar measure.

Definition in file random_unitary.h.