Classes | |
| class | HamiltonianDefinition |
| class | SymbolicFunctionDefinition |
Functions | |
| list[object] | _flatten_variable_entries (list[object] entries) |
| list[object] | _entry_symbols (object entry) |
| str | _entry_name (object entry) |
| str | _replace_symbols (str expression, dict[str, str] replacements) |
| str | _render_cxx_expression (expression, dict[str, str] replacements, dict[str, SymbolicFunctionDefinition]|None symbolic_functions=None, dict[object, str]|None expression_replacements=None) |
| str | _render_members (list[tuple[str, str, bool, str]] parameters) |
| str | _render_constructor_signature (str struct_name, list[tuple[str, str, bool, str]] parameters) |
| str | _render_constructor_initializers (list[tuple[str, str, bool, str]] parameters) |
| str | _render_state_component_method (str name, list expressions, dict[str, str] replacements, dict[str, SymbolicFunctionDefinition] symbolic_functions) |
| None | write_cpp_hamiltonian_header (Path output_path, str namespace, str struct_name, list[tuple[str, str, bool, str]] parameters, hamiltonian, list[dict[str, object]] variable_entries, list[str]|None includes=None, list[str]|None inverse_symbols=None, list|None inverse_expressions=None, list[str]|None template_parameters=None, dict[str, str]|None parameter_value_expressions=None, HamiltonianDefinition|None definition=None) |
| None | generate_cpp_hamiltonian (functor_class, Path output_path, *args, **kwargs) |
|
protected |
Definition at line 38 of file generate_cpp_hamiltonian.py.
|
protected |
Definition at line 48 of file generate_cpp_hamiltonian.py.
|
protected |
Definition at line 54 of file generate_cpp_hamiltonian.py.
|
protected |
Definition at line 63 of file generate_cpp_hamiltonian.py.
|
protected |
Definition at line 71 of file generate_cpp_hamiltonian.py.
|
protected |
Definition at line 131 of file generate_cpp_hamiltonian.py.
|
protected |
Definition at line 138 of file generate_cpp_hamiltonian.py.
|
protected |
Definition at line 152 of file generate_cpp_hamiltonian.py.
|
protected |
Definition at line 160 of file generate_cpp_hamiltonian.py.
| None generate_cpp_hamiltonian.write_cpp_hamiltonian_header | ( | Path | output_path, |
| str | namespace, | ||
| str | struct_name, | ||
| list[tuple[str, str, bool, str]] | parameters, | ||
| hamiltonian, | |||
| list[dict[str, object]] | variable_entries, | ||
| list[str] | None | includes = None, | ||
| list[str] | None | inverse_symbols = None, | ||
| list | None | inverse_expressions = None, | ||
| list[str] | None | template_parameters = None, | ||
| dict[str, str] | None | parameter_value_expressions = None, | ||
| HamiltonianDefinition | None | definition = None ) |
Definition at line 187 of file generate_cpp_hamiltonian.py.
| None generate_cpp_hamiltonian.generate_cpp_hamiltonian | ( | functor_class, | |
| Path | output_path, | ||
| * | args, | ||
| ** | kwargs ) |
Definition at line 357 of file generate_cpp_hamiltonian.py.