User GuideΒΆ

To use the library, simply include/import cytnx.

  • In Python, using import:

1import cytnx
  • In C++, using the include header:

1#include "cytnx.hpp";

Note

In C++, there is a namespace cytnx.

Aliases in Python modules and C++ namespaces can be used equivalently, for example if we want to alias cytnx as cy,

  • In Python:

1import cytnx as cy

This is equivalent in C++ to:

  • In C++:

1#include "cytnx.hpp";
2namespace cy=cytnx;

Now we are ready to start using cytnx!

Continue reading: