Cytnx v0.9.5
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
Physics.hpp File Reference
#include "Type.hpp"
#include "Device.hpp"
#include "cytnx_error.hpp"
#include <vector>
#include <initializer_list>
#include <string>
#include "Tensor.hpp"
#include "UniTensor.hpp"
Include dependency graph for Physics.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  cytnx
 Helper function to print vector with ODT:
 
namespace  cytnx::physics
 
namespace  cytnx::operators
 

Macros

#define kBoltz   cytnx_double(1.380649e-23)
 
#define hPlanck   cytnx_double(6.62607015e-34)
 
#define hBar   cytnx_double(1.05457181e-34)
 

Functions

Tensor cytnx::physics::spin (const cytnx_double &S, const std::string &Comp, const int &device=Device.cpu)
 create Spin-S representation matrix.
 
Tensor cytnx::physics::pauli (const std::string &Comp, const int &device=Device.cpu)
 create Pauli matrix.
 
UniTensor cytnx::operators::Sz_shalf (const int &device=Device.cpu, const bool &conserve_qns=false)
 
UniTensor cytnx::operators::Sp_shalf (const int &device=Device.cpu, const bool &conserve_qns=false, const std::string &aux_dir="r")
 
UniTensor cytnx::operators::Sn_shalf (const int &device=Device.cpu, const bool &conserve_qns=false, const std::string &aux_dir="r")
 

Macro Definition Documentation

◆ hBar

#define hBar   cytnx_double(1.05457181e-34)

◆ hPlanck

#define hPlanck   cytnx_double(6.62607015e-34)

◆ kBoltz

#define kBoltz   cytnx_double(1.380649e-23)