quara.objects.tester_typical module
- generate_povms_1qubit(c_sys, names)[source]
returns a list of POVMs on a common 1-qubit system.
- Parameters
c_sys (CompositeSystem) – 1-qubit system
names (List[str]) – list of 1-qubit POVM names
- Returns
- Return type
List[Povm]
- generate_povms_1qutrit(c_sys, names)[source]
returns a list of POVMs on a common 1-qutrit system.
- Parameters
c_sys (CompositeSystem) – 1-qutrit system
names (List[str]) – list of 1-qutrit POVM names
- Returns
- Return type
List[Povm]
- generate_states_1qubit(c_sys, names)[source]
returns a list of states on a common 1-qubit system.
- Parameters
c_sys (CompositeSystem) – 1-qubit system
names (List[str]) – list of 1-qubit state names
- Returns
- Return type
List[State]
- generate_states_1qutrit(c_sys, names)[source]
returns a list of states on a common 1-qutrit system.
- Parameters
c_sys (CompositeSystem) – 1-qutrit system
names (List[str]) – list of 1-qutrit state names
- Returns
- Return type
List[State]
- generate_tester_povms(c_sys, names)[source]
returns a list of POVMs corresponding to names of POVMs on a common CompositeSystem.
- Parameters
c_sys (CompositeSystem) –
names (List[str]) – names of typical POVMs
- Returns
- Return type
List[POVM]
- generate_tester_povms_depolarized(c_sys, names, error_rates)[source]
returns a list of POVMs corresponding to names of POVMs on a common CompositeSystem affected by a depolarizing channel.
- Parameters
c_sys (CompositeSystem) –
names (List[str]) – names of typical povms
error_rates (Union[float, List[float]]) – depolarizing error rate or list of error rates If it is float, all POVMs are affected by a common depolarizing channel with the error rate.
- Returns
list of POVMs depolarized
- Return type
List[Povm]
- generate_tester_states(c_sys, names)[source]
returns a list of states corresponding to names of states on a common CompositeSystem.
- Parameters
c_sys (CompositeSystem) –
names (List[str]) – names of typical states
- Returns
- Return type
List[State]
- generate_tester_states_depolarized(c_sys, names, error_rates)[source]
returns a list of states corresponding to names of states on a common CompositeSystem affected by a depolarizing channel.
- Parameters
c_sys (CompositeSystem) –
names (List[str]) – names of typical states
error_rates (Union[float, List[float]]) – depolarizing error rate or list of error rates If it is float, all states are affected by a common depolarizing channel with the error rate.
- Returns
list of states depolarized
- Return type
List[State]