Giter Club home page Giter Club logo

Comments (4)

ngraymon avatar ngraymon commented on August 15, 2024

Per #62 (comment) the important part of temp_file_naming was the naming of the output file (lines 1736-1745 `generate_eT_zhz_python)

    # DEBUG - temporary override
    maximum_h_rank, maximum_cc_rank, maximum_T_rank, eT_taylor_max_order, omega_max_order = truncations
    path = "./eT_zhz_eqs"
    path += f"_H({maximum_h_rank})"
    path += f"_P({omega_max_order})"
    path += f"_T({maximum_T_rank})"
    path += f"_exp({eT_taylor_max_order})"
    path += f"_Z({maximum_cc_rank})"
    path += ".py"

and the looping over the different numbers in _glue_.py

for p, e, z in it.product(
    [2, 4],
    [1, 2, 3, 4],
    [1, 2, 3],
):

    # for the 'eT_z_t ansatz' only
    maximum_h_rank = 2
    maximum_cc_rank = z  # max order of Z
    maximum_T_rank = 1  # max order of T
    eT_taylor_max_order = e  # Taylor expansion of eT
    omega_max_order = p  # max order of projection operator

    # need to have truncation of e^T
    eT_z_t_truncations = maximum_h_rank, maximum_cc_rank, maximum_T_rank, eT_taylor_max_order, omega_max_order

    switch = 4

    if switch == 1:
        generate_latex_files(
            eT_z_t_truncations,
            only_ground_state=True,
            remove_f_terms=False,
            thermal=False,
            file='eT_z_t ansatz'
        )
    if switch == 2:
        generate_latex_files(
            truncations,
            only_ground_state=False,
            remove_f_terms=False,
            thermal=False,
            file='z_t ansatz'
        )
    if switch == 3:
        generate_latex_files(
            truncations,
            only_ground_state=True,
            remove_f_terms=False,
            thermal=False,
            file='full cc'
        )

    if switch == 4:
        generate_eT_zhz_python(eT_z_t_truncations, only_ground_state=True)
        # generate_full_cc_python(truncations, only_ground_state=True)

    print("We reached the end of main")

from termfactory.

ngraymon avatar ngraymon commented on August 15, 2024

Really the purpose of this branch could simply be replicated by having a workflow which generates these files and zips them up as a release? artifact? somewhere for download? maybe in the repo in non-package folder (so not stored on pypi but accessible on the github page?)
But that might be a lot of code change, unnecessarily ...? So probably just a zip file?

from termfactory.

ngraymon avatar ngraymon commented on August 15, 2024

This might be relevant https://github.com/marketplace/actions/easy-zip-files

from termfactory.

ngraymon avatar ngraymon commented on August 15, 2024

Just pushed branch storage_generated_einsum_code which includes the files zipped up from temp_file_naming we can delete that branch now @lhprice

from termfactory.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.