pairinteraction
A Rydberg Interaction Calculator
spherical.test.cpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2024 Pairinteraction Developers
2// SPDX-License-Identifier: LGPL-3.0-or-later
3
5
6#include <doctest/doctest.h>
7
8namespace pairinteraction {
9DOCTEST_TEST_CASE("convert cartesian to spherical basis") {
10 DOCTEST_SUBCASE("kappa == 1") {
13
14 DOCTEST_CHECK(identity.isApprox(Eigen::Matrix3<double>::Identity(), 1e-9));
15 }
16
17 DOCTEST_SUBCASE("kappa == 2") {
20
21 DOCTEST_CHECK(diagonal.isDiagonal(1e-9));
22 }
23}
24} // namespace pairinteraction
Matrix< Type, 3, 3 > Matrix3
const Eigen::Matrix< std::complex< double >, 6, 9 > CARTESIAN_TO_SPHERICAL_KAPPA2
Definition: spherical.cpp:33
const Eigen::Matrix3< std::complex< double > > CARTESIAN_TO_SPHERICAL_KAPPA1
Definition: spherical.cpp:22
DOCTEST_TEST_CASE("create a basis for strontium 88")