There are many properties that can be extracted from a QuantumMeasurement object:
result["Probabilities"]
|
+
〉0.592819,|
−
〉0.407181
Use property
"Distribution"
to obtain the resulting measurement outcome's distribution:
result["Distribution"]
CategoricalDistribution
Inputtype:Scalar
Categories:
|
+
〉
|
−
〉
Use property
"States"
to obtain the possible states after measurement:
TraditionalForm@result["States"]
{
(-0.769923-0.00617715)|
+
〉
,
(-0.318654+0.552848)|
−
〉
}
Use property
"StatesAssociation"
to obtain the association of measurement outcomes with their corresponding quantum state:
TraditionalForm@result["StatesAssociation"]
|
+
〉
(-0.769923-0.00617715)|
+
〉
,|
−
〉
(-0.318654+0.552848)|
−
〉
Use property
"PostMeasurementState"
to obtain Lüders mixture. It resemble a scenario where a measurement is executed, yet the outcome of that measurement becomes untraceable or is no longer retained.
TraditionalForm@result["PostMeasurementState"]
(0.592819+0.)|
+
〉〈
+
|+(0.407181+0.)|
−
〉〈
−
|
Find mean-value:
result["Mean"]
0.407181
Note by default, the mean value related to outcomes 0 and 1. If different values, they should be assigned when defining QuantumMeasurementOperator