Skip to content

Commit

Permalink
Merge pull request #156 from shenzhi-git/master
Browse files Browse the repository at this point in the history
wangjing
  • Loading branch information
shenzhi-git authored Jul 31, 2021
2 parents eca6860 + 2281f07 commit b4aca06
Show file tree
Hide file tree
Showing 14 changed files with 2,326 additions and 1,408 deletions.
15 changes: 1 addition & 14 deletions Core/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,20 +431,7 @@ map<string, size_t> QPanda::quickMeasure(QVec vQubit, int shots)
return temp->quickMeasure(vQubit, shots);
}

QProg QPanda::MeasureAll(QVec vQubit, vector<ClassicalCondition> vCBit)
{
QProg qprog = CreateEmptyQProg();
if (vQubit.size() != vCBit.size())
{
QCERR("vQubit != vCBit");
throw invalid_argument("vQubit != vCBit");
}
for (size_t i = 0; i < vQubit.size(); i++)
{
qprog << Measure(vQubit[i], vCBit[i]);
}
return qprog;
}


QStat QPanda::getQState()
{
Expand Down
Loading

0 comments on commit b4aca06

Please sign in to comment.