Blocks
The Blocks class represents a sum of Block objects stored as a ndarray. It provides methods for simplifying the expression and computing the Hermitian conjugate.
Parameters
-
expr (
ndarray[Blocks], optional): -
subspaces (
list[RDBasis], optional):- A list of finite
RDBasisobjects associated with the blocks. - Default:
None. - Usage: This provides context for block operations and is passed to other methods (e.g., during Hermitian conjugation).
Note: The ordering of the
RDBasisobjects is important, as it indicates in which order the tensorial products are applied and should match the order of thesubspacesinEffectiveFrame.
- A list of finite
Attributes
-
expr (
ndarray[Blocks], optional): -
subspaces (
list):- A list of finite subspaces associated with the blocks.
Methods
simplify_blocks(self)
Simplifies the block collection by aggregating blocks with the same infinite parts and delta values.
-
Returns:
hermitian(self)
Computes the Hermitian conjugate of the block collection.
-
Returns:
apply_mask(self, expr: Union['MulGroup', 'Expression'])
Applies a mask to a given MulGroup or Expression object based on the Block collection.
-
Parameters:
- expr (
MulGrouporExpression):- The expression to which the mask will be applied. The mask is used to determine which parts of the expression are included or excluded.
- expr (
-
Returns:
- For a
MulGroup:- A tuple of two
Expressionobjects: - The first expression contains the parts that match the block's delta.
- The second contains the parts that do not match.
- A tuple of two
- For an
Expression:- Similarly, returns a tuple of two
Expressionobjects separating matching and non-matching parts.
- Similarly, returns a tuple of two
- For a
License
SymPT is licensed under the MIT License. See the LICENSE file for details.
Citation
If you use SymPT in your research, please cite the following paper:
BibTeX Entry:
@misc{diotallevi2024symptcomprehensivetoolautomating,
title={SymPT: a comprehensive tool for automating effective Hamiltonian derivations},
author={Giovanni Francesco Diotallevi and Leander Reascos and Mónica Benito},
year={2024},
eprint={2412.10240},
archivePrefix={arXiv},
primaryClass={quant-ph},
url={https://arxiv.org/abs/2412.10240},
}
APA Citation:
Diotallevi, G. F., Reascos, L., & Benito, M. (2024). SymPT: a comprehensive tool for automating effective Hamiltonian derivations. arXiv preprint arXiv:2412.10240.
IEEE Citation:
G. F. Diotallevi, L. Reascos, and M. Benito, "SymPT: a comprehensive tool for automating effective Hamiltonian derivations," arXiv preprint arXiv:2412.10240, 2024.