supergrad.helper.Helper

supergrad.helper.Helper#

class supergrad.helper.Helper(*args, **kwargs)[source]#

Transform attribute to pure function.

__init__(*args, **kwargs) None[source]#

Methods

__init__(*args, **kwargs)

construct_transform_matrix()

Constructing the transform matrix from product basis to eigenbasis.

eigensystem()

Calculate quantum system's eigenenergy and eigenvectors using jax.scipy.linalg.eigh.

get_dims()

idling_hamiltonian_in_prod_basis()

Return the idling Hamiltonian in product basis.

ls_params([attr])

Get all parameters for the selected attribute.

n_operator(node_name[, transform])

Return the operator of the selected node.

phi_operator(node_name[, transform])

Return the operator of the selected node.

Attributes

all_params

The static parameters dictionary.

device_params

The device parameters dictionary.

dims

The dimension of the composited quantum system.