|
Cytnx v0.7.3
|
Functions | |
| Tensor | spin (const cytnx_double &S, const std::string &Comp, const int &device=Device.cpu) |
| create Spin-S representation matrix. | |
| Tensor | pauli (const std::string &Comp, const int &device=Device.cpu) |
| create Pauli matrix. | |
| Tensor | spin (const cytnx_double &S, const char &Comp, const int &device) |
| Tensor | pauli (const char &Comp, const int &device) |
| Tensor cytnx::physics::pauli | ( | const char & | Comp, |
| const int & | device | ||
| ) |
| Tensor cytnx::physics::pauli | ( | const std::string & | Comp, |
| const int & | device = Device.cpu |
||
| ) |
create Pauli matrix.
| Comp | the Component of Spin, it can be 'x', 'y' and 'z' |
| device | the device that the Tensor is put on. It can be any device defined in cytnx::Device |
| Tensor cytnx::physics::spin | ( | const cytnx_double & | S, |
| const char & | Comp, | ||
| const int & | device | ||
| ) |
| Tensor cytnx::physics::spin | ( | const cytnx_double & | S, |
| const std::string & | Comp, | ||
| const int & | device = Device.cpu |
||
| ) |
create Spin-S representation matrix.
| S | the Spin index. should be multiple of 1/2. |
| Comp | the Component of Spin, it can be 'x', 'y' and 'z' |
| device | the device that the Tensor is put on. It can be any device defined in cytnx::Device |