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

Function double_to_string

Core/Utilities/Tools/QStatMatrix.cpp:361–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361static std::string double_to_string(const double d, const int precision = 15)
362{
363 std::ostringstream stream;
364 stream.precision(precision);
365 stream << d;
366 return stream.str();
367}
368
369string QPanda::matrix_to_string(const QStat& mat, const int precision /*= 15*/)
370{

Callers 2

transformQGateMethod · 0.85
matrix_to_stringMethod · 0.85

Calls 2

precisionMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected