Cytnx user guide and examples¶ Cytnx is a library designed for Quantum physics simulations using GPUs and CPUs. Introduction Install & Usage of Cytnx Conda install Using Python API after Conda install Using C++ API after Conda install Advanced Install of Cytnx Build/Install Cytnx from source Dependencies Compiling process Using Python API after self-build install Using C++ API after self-build install Check Cytnx version Generate API documentation User Guide Overview Start reading Advanced topics Contents 1. Conventions 2. Device 3. Tensor 4. Storage 5. Scalar 6. Tensor notation 7. UniTensor 8. Contraction 9. Tensor decomposition 10. Iterative solver 11. Linear algebra 12. Common APIs Examples 1. Exact Diagonalization 1.1. Bit representation of basis states 1.2. Implementation 1.3. Simulation Results 2. iTEBD 2.1. Imaginary time evolution 2.2. Update procedure 3. DMRG 3.1. The model– XY chain 3.2. Basic components 3.3. Preparing the MPO 3.4. Preparing the MPS and enviroments 3.5. Optimization of MPS (update sweep) 3.6. Compare DMRG Results 4. iDMRG 4.1. Initialization 4.2. Update procedure Common usage 1. Set same value for all blocks in UniTensor with Symmetry 2. Check current Blas/Lapack integer size Performance tuning Tensordot with input cache Access single element of Tensor in C++ API Documentation Paper Github 5-mins Blitz intro slide Developer Indices and tables¶ Index Module Index Search Page