piel.tools.qutip.unitary#
Attributes#
Functions#
|
This function returns a unitary between the indexes selected, and verifies the indexes are valid by checking that |
|
This function returns a unitary between the indexes selected, and verifies the indexes are valid by checking that |
|
Verify that the matrix is unitary. |
Module Contents#
- subunitary_selection_on_index(unitary_matrix: jax.numpy.ndarray, rows_index: jax.numpy.ndarray | tuple, columns_index: jax.numpy.ndarray | tuple)[source]#
This function returns a unitary between the indexes selected, and verifies the indexes are valid by checking that the output matrix is also a unitary.
TODO implement validation of a 2D matrix.
- subunitary_selection_on_range(unitary_matrix: jax.numpy.ndarray, stop_index: tuple, start_index: tuple | None = (0, 0))[source]#
This function returns a unitary between the indexes selected, and verifies the indexes are valid by checking that the output matrix is also a unitary.
TODO implement validation of a 2D matrix.
- verify_matrix_is_unitary(matrix: jax.numpy.ndarray) bool[source]#
Verify that the matrix is unitary.
- Parameters:
matrix (jnp.ndarray) – The matrix to verify.
- Returns:
True if the matrix is unitary, False otherwise.
- Return type:
bool
- standard_s_parameters_to_qutip_qobj#