Skip to content

circulant#

Includes functions for block phi circulant matrices.

Functions:

expand_transverse #

expand_transverse(matrix_dict: dict, transport_ind: int, sections: tuple[int, int], phases: tuple[complex, complex] = (1.0, 1.0)) -> dict

Upscales a layer of the tight binding matrix to a block circulant matrix with the given number of sections.

The matrix is upscaled in the transverse directions, while the transport direction is kept unchanged.

For example, given a matrix_dict with size [3, 2, 2], the resulting dict will have size [3, 1, 1]. It is assumed that all nessecary keys are present in the matrix_dict.

Parameters:

  • matrix_dict (dict) –

    The tight binding matrix to upscale.

  • transport_ind (int) –

    The index of the transport direction.

  • sections (tuple[int, int]) –

    The number of sections in the block circulant structure.

  • phases (tuple[complex, complex], default: (1.0, 1.0) ) –

    The phase factors to apply to the blocks in each transverse direction, by default (1.0, 1.0).

Returns:

  • dict –

    The upscaled block circulant matrix.

construct_circulant_cell #

construct_circulant_cell(matrix_dict: dict, transport_cell_size: int, transport_ind: int, block_index: int, sections: tuple[int, int], phases: tuple[complex, complex] = (1.0, 1.0), key_assumption: str | None = None) -> NDArray

Expands a unit cell matrix into a block matrix. This function first expands in transverse directions, and then constructs the transport cell block. To expand in transverse direction, a block circulant structure is assumed

The function assumes that all necessary keys are present in the matrix_dict.

Parameters:

  • matrix_dict (dict) –

    The dictionary of matrices corresponding to different periodic repetitions.

  • transport_cell_size (int) –

    Size of the transport cell.

  • transport_ind (int) –

    Direction of transport. Can be 0, 1, 2.

  • block_index (int) –

    The index of the block to expand. Can be either -1, 0, 1 representing either the lower, diagonal, or upper block in the transport direction.

  • sections (tuple[int, int]) –

    The number of sections in the transverse directions.

  • phases (tuple[complex, complex], default: (1.0, 1.0) ) –

    The phase shifts to apply in the transverse directions.

  • key_assumption (str | None, default: None ) –

    Assumption on the keys in the matrix_dict. It must be either None, or "half". The assumption is only for the transport direction while for the transverse directions, it is assumed all keys are present.

Returns:

  • NDArray –

    The expanded block matrix.