Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • MultiPaletteCurriculum
  • at-paper
  • DissGrothoffACPLT
  • DissGrothoffPTSSim
5 results

Scripts

  • Open with
  • Download source code
  • Download directory
  • Your workspaces

      A workspace is a virtual sandbox environment for your code in GitLab.

      No agents available to create workspaces. Please consult Workspaces documentation for troubleshooting.

  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.

    QuTree

    A tensor tree linear algebra package in C++ designed for quantum dynamics and machine learning applications.

    Getting Started

    Installation is easy using HomeBrew (on OS X) or LinuxBrew (on Linux):

    brew tap sseritan/qu-tree
    brew install qu-tree

    After installation, QuTree can be easily used in downstream CMake projects.

    Example CMakeLists.txt:

    cmake_minimum_required(VERSION 3.0)
    project(example CXX)
    
    find_package(QuTree REQUIRED)
    
    add_executable(test test.cpp)
    target_link_libraries(test QuTree::QuTree)

    Example test.cpp:

    #include <Core/Tensor.h>
    #include <Core/Matrix.h>
    
    int main()
    {
    TensorShape tdim({2, 3, 4});
    Tensorcd A(tdim);
    for (size_t i = 0; i < A.shape().totalDimension(); i++) {
        A(i) = i;
    }
    Matrixcd w = A.DotProduct(A);
    w.print();
    }

    For detailed examples on how to use the library, please see the examples folder or check out our documentation.

    Citation

    If QuTree is useful to your work, please cite the following paper:

    TODO