Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
B92Finite/key_rate_utilsb92.hpp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
27 lines (21 sloc)
777 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __key_rate_utilsb92_HPP | |
#define __key_rate_utilsb92_HPP | |
#include <iostream> | |
#include "utils.hpp" | |
#include <vector> | |
#include <map> | |
#include <cmath> | |
//namespace Extb92Finite{ | |
using namespace std; | |
inline map<string,double> AtoB, AtoAref, AtoAproj, trueEs; | |
double s_entropy(vector<double> E1s, vector<double> E2s, vector<double> Ls, int CAD_level); | |
double calc_s_term(double E1, double E2, double Lx, int CAD_level); | |
inline double calc_lambdax(double E1N, double E2N, double big_Lx, int CAD_level); | |
double H_AB(vector<double> Pij_key); | |
double h_entropy(double x); | |
double safe_log2(double x); | |
//} | |
//using namespace key_rate_utils; | |
//namespace key_rate_utils{}; | |
void generateNoiseStatistics(bool SYM_FLAG, double alpha, double Q=.11); | |
#endif |