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

Method runWithConfiguration

Core/QuantumMachine/NoiseQVM.cpp:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47std::map<string, size_t> NoiseQVM::runWithConfiguration(QProg &prog, std::vector<ClassicalCondition> &cbits,
48 rapidjson::Document &doc, const NoiseModel&)
49{
50 QPANDA_ASSERT(doc.HasParseError() || !doc.HasMember("shots") || !doc["shots"].IsUint64(),
51 "runWithConfiguration param don't have shots");
52 size_t shots = doc["shots"].GetUint64();
53 return runWithConfiguration(prog, cbits, shots);
54}
55
56double NoiseQVM::get_expectation(QProg prog, const QHamiltonian& hamiltonian, const QVec& qv, int shots)
57{

Callers 10

single_qubit_rbMethod · 0.45
two_qubit_rbMethod · 0.45
calcINoiseResultMethod · 0.45
execMethod · 0.45
QST_simulationMethod · 0.45
single_qubit_rbMethod · 0.45
two_qubit_rbMethod · 0.45
calcINoiseResultMethod · 0.45

Calls 14

sortFunction · 0.85
ClassicalConditionClass · 0.85
HasMemberMethod · 0.80
get_cbit_by_addrMethod · 0.80
set_quantum_noiseMethod · 0.80
runFunction · 0.50
HasParseErrorMethod · 0.45
push_backMethod · 0.45
executeMethod · 0.45
getImplementationPtrMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected