pairinteraction
A Rydberg Interaction Calculator
TransformationType.py.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
7
8#include <nanobind/nanobind.h>
9
10namespace nb = nanobind;
11using namespace pairinteraction;
12
13void bind_transformation_type(nb::module_ &m) {
14 nb::enum_<TransformationType>(m, "TransformationType", nb::is_arithmetic())
15 .value("IDENTITY", TransformationType::IDENTITY)
16 .value("SORT_BY_KET", TransformationType::SORT_BY_KET)
17 .value("SORT_BY_QUANTUM_NUMBER_F", TransformationType::SORT_BY_QUANTUM_NUMBER_F)
18 .value("SORT_BY_QUANTUM_NUMBER_M", TransformationType::SORT_BY_QUANTUM_NUMBER_M)
19 .value("SORT_BY_PARITY", TransformationType::SORT_BY_PARITY)
20 .value("SORT_BY_ENERGY", TransformationType::SORT_BY_ENERGY)
21 .value("ROTATE", TransformationType::ROTATE)
22 .value("ARBITRARY", TransformationType::ARBITRARY);
23}
void bind_transformation_type(nb::module_ &m)