Wolfram`QuantumFramework`
QuantumStateEstimate [ ] |
|
| |
Details and Options
Examples
(1)
Basic Examples
(1)
Define a 2D random mixed state:
In[1]:=
state=
["RandomMixed"];
QuantumState |
Simulate some measurement results for different measurement, given the above state:
In[2]:=
result=
state,
/@{"X","Y","Z"},100
QuantumMeasurementSimulation |
QuantumMeasurementOperator |
Out[2]=
QuantumMeasurementOperator
{51,49},QuantumMeasurementOperator
{4,96},QuantumMeasurementOperator
{63,37}
|
|
|
Find the corresponding quantum state estimation
In[3]:=
estimation=
[result]
QuantumStateEstimate |
Out[3]=
QuantumStateEstimation
|
Generate 100 states using the corresponding Bayesian sampling function:
In[4]:=
samples=estimation["BayesianSampler"][100];
Show histogram of fidelity wrt the original quantum state:
In[5]:=
Histogram
[#,state,"Fidelity"]&/@samples
QuantumDistance |
Out[5]=
|
|
""