MCPcopy Create free account
hub / github.com/OriginQ/QPanda-2 / eval

Function eval

Core/Variational/utils.cpp:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace Variational {
6
7MatrixXd eval(var root, bool iter){
8 expression exp(root);
9 if(iter)
10 return exp.propagate(exp.findLeaves());
11 else
12 return exp.propagate();
13}
14
15void back(const var& root,
16 std::unordered_map<var, MatrixXd>& derivative){

Callers 14

compute_gradientsMethod · 0.70
get_lossMethod · 0.70
runMethod · 0.70
export_variationalFunction · 0.50
TESTFunction · 0.50
toStringMethod · 0.50
reduceDuplicatesMethod · 0.50
delSimilarMethod · 0.50
toHamiltonianMethod · 0.50
classifierFunction · 0.50
noisy_qaoaFunction · 0.50

Calls 2

propagateMethod · 0.80
findLeavesMethod · 0.80

Tested by 1

TESTFunction · 0.40