module documentation

Undocumented

Class ParameterizedUnitaryGate UnitaryGate sublcass that stores the operator matrix for later reference by animation utility.
Function __calculate_segment_duration Calculate the duration at the current step. Return a tuple of the (duration, unit).
Function __calculate_segment_params Calculate the parameters at the current step. Return a tuples of the values.
def __calculate_segment_duration(self, current_step: int = 1, total_steps: int = 1, keep_state: bool = False): (source)

Calculate the duration at the current step. Return a tuple of the (duration, unit).

def __calculate_segment_params(self, current_step: int = 1, total_steps: int = 1, keep_state: bool = False): (source)

Calculate the parameters at the current step. Return a tuples of the values.

Args:
current_step (int): 0-based current step index of the discretization total_steps (int): total number of discretization steps keep_state (bool): true if the state should be kept between discretization steps (i.e., if the discretization value should be 1/total_steps vs current_step/total_steps)
Returns
discretized parameter values as tuple