peropq.hamiltonian

Classes

Hamiltonian

Class representing the Hamilonian.

Module Contents

class peropq.hamiltonian.Hamiltonian(pauli_string_list)

Class representing the Hamilonian.

Parameters:

pauli_string_list (collections.abc.Sequence[peropq.pauli_bitstring.PauliString])

pauli_string_list
cjs: list[complex] = []
get_n_terms()

Method returning the number of Pauli Strings.

Returns:

number of terms (i.e. Pauli strings) of the Hamiltonian.

Return type:

int

get_cjs()

Method returning the coefficients.

Returns:

coefficient in front of each term of the Hamiltonian.

Return type:

list[complex]