quara.protocol.qtomography.standard.standard_qtomography_estimator module
- class StandardQTomographyEstimationResult(estimated_var_sequence, computation_times, template_qoperation)[source]
Bases:
quara.protocol.qtomography.qtomography_estimator.QTomographyEstimationResultConstructor
- Parameters
computation_times (List[float]) – computation times for each estimate.
estimated_var_sequence (List[numpy.ndarray]) –
template_qoperation (quara.objects.qoperation.QOperation) –
- property estimated_qoperation: quara.objects.qoperation.QOperation
returns the estimate. the type of each estimate is
QOperation.- Returns
the estimate.
- Return type
- property estimated_qoperation_sequence: List[quara.objects.qoperation.QOperation]
returns the estimate sequence. the type of each estimate is
QOperation.- Returns
the estimate sequence.
- Return type
List[QOperation]
- property estimated_var: numpy.ndarray
returns the estimate. the type of each estimate is
np.ndarray.- Returns
the estimate.
- Return type
np.ndarray
- property estimated_var_sequence: List[numpy.ndarray]
returns the estimate sequence. the type of each estimate is
np.ndarray.- Returns
the estimate sequence.
- Return type
List[np.ndarray]
- class StandardQTomographyEstimator[source]
Bases:
quara.protocol.qtomography.qtomography_estimator.QTomographyEstimator- abstract calc_estimate(qtomography, empi_dists, is_computation_time_required=False)[source]
calculates estimate variables.
this function must be implemented in the subclass.
- Parameters
qtomography (StandardQTomography) – StandardQTomography to calculates estimate variables.
empi_dists (List[Tuple[int, np.ndarray]]) – empirical distributions to calculates estimate variables.
is_computation_time_required (bool, optional) – whether to include computation time in the return value or not, by default False.
- Returns
estimation result.
- Return type
- Raises
NotImplementedError – this function does not be implemented in the subclass.
- abstract calc_estimate_sequence(qtomography, empi_dists_sequence, is_computation_time_required=False)[source]
calculates sequence of estimate variables.
this function must be implemented in the subclass.
- Parameters
qtomography (StandardQTomography) – StandardQTomography to calculates estimate variables.
empi_dists_sequence (List[List[Tuple[int, np.ndarray]]]) – sequence of empirical distributions to calculates estimate variables.
is_computation_time_required (bool, optional) – whether to include computation time in the return value or not, by default False.
- Returns
estimation result.
- Return type
- Raises
NotImplementedError – this function does not be implemented in the subclass.