#include <stdio.h>
#include <math.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_blas.h>
#include <gsl/gsl_complex.h>
#include <gsl/gsl_complex_math.h>
#include <gsl/gsl_eigen.h>
#include "quantum_system.h"
#include "density_matrix.h"
#include "operators.h"
#include "misc.h"
#include "gsl_ext.h"
Functions | |
double | entanglement_neumann_entropy (gsl_matrix_complex *rho) |
double | entanglement_log_neg (gsl_matrix_complex *rho) |
double | entanglement_concurrence (quantum_system *qs, gsl_matrix_complex *rho) |
double entanglement_concurrence | ( | quantum_system * | qs, | |
gsl_matrix_complex * | rho | |||
) |
Calculate the concurrence for the density matrix (two TLS) rho.
Calculate the concurrence for the density matrix of a two-qubit system.
qs | Data structure that specifies the form of the quantum system. | |
rho | The density matrix for a two-qubit system. |
double entanglement_log_neg | ( | gsl_matrix_complex * | rho | ) |
Calculate the log negativity for the density matrix of two TLS, rho.
Calculate the negativity of a two-qubit system.
rho | Density matrix for a two-qubit system. |
double entanglement_neumann_entropy | ( | gsl_matrix_complex * | rho | ) |
Calculate the von Neumann Entropy of a system with density matrix rho.
This function takes a density matrix as input and calculates the von Neumann entropy. Note that the density matrix is not restricted to be representing any particular for of quantum system.
rho | The density matrix for which the von Neumann entropy is to be calculated. |