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_utils.hpp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
17 lines (14 sloc)
566 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_utils_HPP | |
#define __key_rate_utils_HPP | |
#include <iostream> | |
#include "utills.hpp" | |
#include <vector> | |
#include <map> | |
#include <cmath> | |
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(E1s[i])(double E1, double E2, double Lx, int CAD_level); | |
inline double calc_lambdax(double E1N, double E2N, double big_Lx, int CAD_level); | |
int H_AB(vector<double> Pij_key); | |
void generateNoiseStatistics(bool SYM_FLAG, double Q=.11) | |
#endif |