Sequential Quantum Gate Decomposer  v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
Functions
bindings.cpp File Reference
#include <pybind11/complex.h>
#include <pybind11/numpy.h>
#include <pybind11/operators.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include "density_matrix.h"
#include "density_operation.h"
#include "matrix.h"
#include "noise_channel.h"
#include "noisy_circuit.h"
Include dependency graph for bindings.cpp:

Go to the source code of this file.

Functions

py::array_t< std::complex< double > > density_matrix_to_numpy (const DensityMatrix &rho)
 
DensityMatrix numpy_to_density_matrix (py::array_t< std::complex< double >> arr)
 
 PYBIND11_MODULE (_density_matrix_cpp, m)
 

Function Documentation

◆ density_matrix_to_numpy()

py::array_t<std::complex<double> > density_matrix_to_numpy ( const DensityMatrix rho)

Definition at line 70 of file bindings.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ numpy_to_density_matrix()

DensityMatrix numpy_to_density_matrix ( py::array_t< std::complex< double >>  arr)

Definition at line 26 of file bindings.cpp.

Here is the caller graph for this function:

◆ PYBIND11_MODULE()

PYBIND11_MODULE ( _density_matrix_cpp  ,
 
)

Definition at line 91 of file bindings.cpp.

Here is the call graph for this function: