Skip to content

Commit b4aca06

Browse files
authored
Merge pull request #156 from shenzhi-git/master
wangjing
2 parents eca6860 + 2281f07 commit b4aca06

File tree

14 files changed

+2326
-1408
lines changed

14 files changed

+2326
-1408
lines changed

Core/Core.cpp

+1-14
Original file line numberDiff line numberDiff line change
@@ -431,20 +431,7 @@ map<string, size_t> QPanda::quickMeasure(QVec vQubit, int shots)
431431
return temp->quickMeasure(vQubit, shots);
432432
}
433433

434-
QProg QPanda::MeasureAll(QVec vQubit, vector<ClassicalCondition> vCBit)
435-
{
436-
QProg qprog = CreateEmptyQProg();
437-
if (vQubit.size() != vCBit.size())
438-
{
439-
QCERR("vQubit != vCBit");
440-
throw invalid_argument("vQubit != vCBit");
441-
}
442-
for (size_t i = 0; i < vQubit.size(); i++)
443-
{
444-
qprog << Measure(vQubit[i], vCBit[i]);
445-
}
446-
return qprog;
447-
}
434+
448435

449436
QStat QPanda::getQState()
450437
{

0 commit comments

Comments
 (0)