TEST(QST, TestConstructWithVector) { Vector4cd vecCol(1, 1, 0, 1); vecCol.normalize(); Matrix<std::complex< double >, 1, 4> vecRow(1, 1, 0, 1); vecRow.normalize(); Matrix4cd res = vecCol * vecRow; HilbertSpace space(4); QuantumState state(vecCol, space); EXPECT_EQ(true, res.isApprox(state.densityMatrix())); }
void SqlTable::Insert( const CMyStr* strCol, const CMyStr* strVal ) { TVecMyStr vecCol(1); TVecMyStr vecVal(1); vecCol.at(0) = strCol; vecVal.at(0) = strVal; Insert(vecCol, vecVal); }