jaxvacua.cytools_interface#
CYTools interoperability helpers.
Purpose#
Convert CYTools polytopes, triangulations and Calabi-Yau objects into the
model-data dictionaries consumed by lcs_tree and provide adapters back
from JAXVacua EFT objects to selected CYTools geometry objects.
Main public API#
cytools_model_data_initandcytools_instanton_data_initfor extracting intersection data, Chern data, cone data and optional Gopakumar-Vafa/Gromov-Witten invariants.Sparse/dense intersection helpers such as
compute_intersection_numbers_cooandremove_zeros.Geometry adapters
eft_to_poly,eft_to_cy,eft_to_coninop,eft_to_coneandeft_to_facet.
Design notes#
CYTools is an optional but heavy dependency. This module should remain the
boundary layer for CYTools-specific objects so the core package can operate on
plain dictionaries and lcs_tree instances once model data has been loaded.
When to use this bridge#
Use this module when the starting point is a CYTools polytope,
triangulation, Calabi-Yau object, cone, or facet and the next step is a
JAXVacua model-data object. If the workflow already has a saved
lcs_tree or bundled model data, this bridge is usually not needed.
Data extracted#
The initialisation helpers collect the geometry needed by the LCS and coniLCS pipelines: Hodge numbers, intersection numbers, second Chern data, Mori/Kähler cone information, triangulation and polytope identifiers, and optionally instanton data or conifold candidates when those are available from the CYTools object.
Typical route#
Start from a CYTools geometry object.
Use
cytools_model_data_initto build the core model-data dictionary.Use
cytools_instanton_data_initwhen instanton data should be attached to that dictionary.Pass the result to
lcs_tree.from_dictor to a higher-level model constructor.
compute_intersection_numbers_cooremove_zeroscytools_model_data_initHodge, Chern, cone and metadata
cytools_instanton_data_initGV / GW data when available
lcs_tree.from_dict / lcs_tree.from_cytools
→ periods → css → FluxEFT
eft_to_polyeft_to_cyeft_to_coninopbasis + curve
eft_to_coneeft_to_facetCYTools interface#
|
Initializes model data from a CYTools input (Polytope, Triangulation, or CalabiYau). Computes geometric data including intersection numbers, Chern classes, and Kähler cone information. Optionally applies basis transformations and removes specified axes. Saves data to file if requested. |
|
Initializes instanton data from a CYTools input (Polytope, Triangulation, or CalabiYau). Computes Gopakumar-Vafa and Gromov-Witten invariants up to a specified maximum degree. Optionally applies a basis transformation and removes specified axes from the data. Saves the instanton data to a file if specified. |
|
Converts intersection numbers from dense to coo format. |
|
Removes zero rows from a numpy array. |
Geometry adapters#
|
Extracts the polytope from the given model. |
|
Returns the Calabi-Yau manifold from the given model. |
|
Returns the basis transformation and conifold curve from the given model. |
|
Extracts the Kähler cone from the given model. |
|
Extracts the facet of the Kähler cone from the given model. |