OccupiedModals#

class OccupiedModals(num_modals)[source]#

Bases: object

The OccupiedModals property.

The following attributes can be set via the initializer but can also be read and updated once the OccupiedModals object has been constructed.

num_modals#

the number of modals per mode in the system.

Type:

Sequence[int]

Parameters:

num_modals (Sequence[int]) – the number of modals for each mode.

Methods

interpret(result)[source]#

Interprets an EigenstateResult in this property’s context.

Parameters:

result (qiskit_nature.second_q.problems.EigenstateResult) – the result to add meaning to.

second_q_ops()[source]#

Returns the second quantized operators indicating the occupied modals per mode.

Returns:

A mapping of strings to VibrationalOp objects.

Return type:

Mapping[str, VibrationalOp]