1#ifndef CYTNX_PHYSICS_H_
2#define CYTNX_PHYSICS_H_
8#include <initializer_list>
28 Tensor spin(
const cytnx_double &S,
const std::string &Comp,
const int &device =
Device.cpu);
31 Tensor spin(
const cytnx_double &S,
const char &Comp,
const int &device =
Device.cpu);
51#define kBoltz cytnx_double(1.380649e-23)
52#define hPlanck cytnx_double(6.62607015e-34)
53#define hBar cytnx_double(1.05457181e-34)
63 const std::string &aux_dir =
"r");
65 const std::string &aux_dir =
"r");
73 UniTensor pauli_x(
const int &device = Device.cpu);
74 UniTensor pauli_y(
const int &device = Device.cpu);
75 UniTensor pauli_z(
const int &device = Device.cpu);
76 UniTensor hadamard(
const int &device = Device.cpu);
77 UniTensor phase_shift(
const cytnx_double &phase,
const int &device = Device.cpu);
78 UniTensor swap(
const int &device = Device.cpu);
79 UniTensor sqrt_swap(
const int &device = Device.cpu);
80 UniTensor toffoli(
const int &device = Device.cpu);
81 UniTensor cntl_gate_2q(
const UniTensor &gate_1q);
an tensor (multi-dimensional array)
Definition Tensor.hpp:33
An Enhanced tensor specifically designed for physical Tensor network simulation.
Definition UniTensor.hpp:2773
UniTensor Sn_shalf(const int &device=Device.cpu, const bool &conserve_qns=false, const std::string &aux_dir="r")
UniTensor Sp_shalf(const int &device=Device.cpu, const bool &conserve_qns=false, const std::string &aux_dir="r")
UniTensor Sz_shalf(const int &device=Device.cpu, const bool &conserve_qns=false)
Tensor pauli(const std::string &Comp, const int &device=Device.cpu)
create Pauli matrix.
Tensor spin(const cytnx_double &S, const std::string &Comp, const int &device=Device.cpu)
create Spin-S representation matrix.
Definition Accessor.hpp:12
Device_class Device
data on which devices.