qdk_chemistry.data.time_evolution.containers.base module
QDK/Chemistry time evolution container base module.
- class qdk_chemistry.data.time_evolution.containers.base.TimeEvolutionUnitaryContainer[source]
Bases:
DataClassAbstract class for a time evolution unitary container.
- abstract property type: str[source]
Get the type of the time evolution unitary container.
- Returns:
The type of the time evolution unitary container.
- abstract property num_qubits: int[source]
Get the number of qubits the time evolution unitary acts on.
- Returns:
The number of qubits.
- abstractmethod to_json()[source]
Convert the TimeEvolutionUnitaryContainer to a dictionary for JSON serialization.
- abstractmethod to_hdf5(group)[source]
Save the TimeEvolutionUnitaryContainer to an HDF5 group.
- Return type:
- Parameters:
group (h5py.Group) – HDF5 group or file to write data to
- abstractmethod classmethod from_json(json_data)[source]
Create TimeEvolutionUnitaryContainer from a JSON dictionary.