pairinteraction
A Rydberg Interaction Calculator
Database.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
4#include "./Database.py.hpp"
5
11
12#include <nanobind/eigen/sparse.h>
13#include <nanobind/nanobind.h>
14#include <nanobind/stl/complex.h>
15#include <nanobind/stl/filesystem.h>
16#include <nanobind/stl/optional.h>
17#include <nanobind/stl/shared_ptr.h>
18#include <nanobind/stl/string.h>
19#include <nanobind/stl/vector.h>
20
21namespace nb = nanobind;
22using namespace nb::literals;
23using namespace pairinteraction;
24
25static void declare_database(nb::module_ &m) {
26 nb::class_<Database>(m, "Database")
27 .def(nb::init<>())
28 .def(nb::init<bool>(), "download_missing"_a)
29 .def(nb::init<std::filesystem::path>(), "database_dir"_a)
30 .def(nb::init<bool, bool, std::filesystem::path>(), "download_missing"_a, "use_cache"_a,
31 "database_dir"_a);
32}
33
34void bind_database(nb::module_ &m) { declare_database(m); }
void bind_database(nb::module_ &m)
Definition: Database.py.cpp:34