Comments (4)
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.
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.
This might be relevant https://github.com/marketplace/actions/easy-zip-files
from termfactory.
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)
- Reminder to update log_conf.py
- Trying out the planning feature
- Identify each branch and make a plan for them HOT 18
- Strip out old files HOT 2
- Minimal prototype of linalg generator HOT 1
- Organization of modules
- Implement `opt_einsum` for generated eT H Z code HOT 5
- Implement `opt_einsum` generator for full cc HOT 3
- Improve/Speed up eT zhz pytests HOT 5
- left hand side testing for `latex_eT_zhz.py` specifically around lines:
- Add test to `blanket_test.py` to produce code for eT H Z
- Automatic documentation using Sphinx HOT 3
- Possibly use the new impact analysis from code cov HOT 1
- Improve coverage exclusion specificity
- Change excited state code and other non implemented code to use `NotImplementedError` HOT 1
- Add test for `_write_third_eTz_einsum_python` with `suppress_empty_if_checks=False` HOT 1
- Rename the output eTHZ files, or change the path in t-amplitudes?
- Latest testing workflow fails for unknown reason? HOT 1
- First attempt at Integrating sigrid HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from termfactory.