Skip to content
Permalink
master
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
#ifndef _UTILS_hpp
#define _UTILS_hpp
#include "Algebra.hpp"
#include <iostream>
#include <vector>
#include <utility>
#include <random>
#include <string>
#include <map>
#include <cmath>
typedef std::pair<std::string, Algebra::QMat> Qubit;
#define T 0.125
#define PI 3.14159265
namespace Algebra{
using namespace std;
void eigenValuestoVectorRef(QMat m, vector<complex<double>>& v);
map<string, double> random_angles();
map<string, double> near_ident_random_angles();
QMat random_unitary_matrix(int d=32);
map<string, double> noiseStatsAtoB(QMat& Uf, vector<Qubit>& iSet, vector<Qubit>& jSet);
map<string, double> noiseStatsAtoBreftoA(QMat& Uf, QMat& Ur, vector<Qubit>& iSet, vector<Qubit>& jSet);
map<string, double> noiseStatsAtoBprojtoA(QMat& Uf, QMat& Ur, vector<Qubit>& iSet, vector<Qubit>& jSet, vector<Qubit>& kSet);
map<string, double> true_value(QMat& Uf, QMat& Ur, Qubit& zero, Qubit& one);
}
#endif