quara.objects.state_ensemble module
- class StateEnsemble(states, prob_dist, eps_zero=1e-08)[source]
Bases:
quara.objects.qoperation.QOperationConstructor
- Parameters
c_sys (CompositeSystem) – CompositeSystem of this QOperation.
is_physicality_required (bool, optional) – whether this QOperation is physicality required, by default True
is_estimation_object (bool, optional) – whether this QOperation is estimation object, by default True
on_para_eq_constraint (bool, optional) – whether this QOperation is on parameter equality constraint, by default True
on_algo_eq_constraint (bool, optional) – whether this QOperation is on algorithm equality constraint, by default True
on_algo_ineq_constraint (bool, optional) – whether this QOperation is on algorithm inequality constraint, by default True
mode_proj_order (str, optional) – the order in which the projections are performed, by default “eq_ineq”
eps_proj_physical (float, optional) – epsiron that is projection algorithm error threshold for being physical, by default
get_atol()/ 10.0eps_truncate_imaginary_part (float, optional) – threshold to truncate imaginary part, by default
get_atol()states (List[quara.objects.state.State]) –
prob_dist (quara.objects.multinomial_distribution.MultinomialDistribution) –
eps_zero (Union[float, numpy.float64]) –
- Raises
ValueError –
eps_proj_physicalis negative.
- property eps_zero
- property prob_dist
- property states