Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

QuantumFramework

Tutorials

  • Getting Started

Guides

  • Wolfram Quantum Computation Framework

Tech Notes

  • Bell's theorem
  • Circuit Diagram
  • Exploring Fundamentals of Quantum Theory
  • Quantum object abstraction
  • Tensor Network

Symbols

  • QuantumBasis
  • QuantumChannel
  • QuantumCircuitMultiwayGraph [EXPERIMENTAL]
  • QuantumCircuitOperator
  • QuantumDistance
  • QuantumEntangledQ
  • QuantumEntanglementMonotone
  • QuantumEvolve
  • QuantumMeasurement
  • QuantumMeasurementOperator
  • QuantumMeasurementSimulation
  • QuantumMPS [EXPERIMENTAL]
  • QuantumOperator
  • QuantumPartialTrace
  • QuantumShortcut [EXPERIMENTAL]
  • QuantumStateEstimate [EXPERIMENTAL]
  • QuantumState
  • QuantumTensorProduct
  • QuantumWignerMICTransform [EXPERIMENTAL]
  • QuantumWignerTransform
  • QuditBasis
  • QuditName
Wolfram`QuantumFramework`
QuantumMeasurement
​
QuantumMeasurement
[...]
represents the result of quantum measurement, in a non-demolishing way.
​
Details and Options

Examples  
(5)
Basic Examples  
(1)
QuantumMeasurement
is automatically generated when
QuantumMeasurementOperator
acts on a state.
In[132]:=
st=
QuantumState
["RandomPure"];​​result=
QuantumMeasurementOperator
["Z"][st]​​
Out[133]=
QuantumMeasurement
Target: {1}
Measurement Outcomes: 2

There are many properties that can be extracted from a QuantumMeasurement object:
In[139]:=
result["Probabilities"]
Out[139]=
|

+
〉0.592819,|

−
〉0.407181
Use property
"Distribution"
to obtain the resulting measurement outcome's distribution:
In[135]:=
result["Distribution"]
Out[135]=
CategoricalDistribution
Input type: Scalar
Categories:
|

+
〉
|

−
〉

Use property
"States"
to obtain the possible states after measurement:
In[140]:=
TraditionalForm@result["States"]
Out[140]//TraditionalForm=
{
(-0.769923-0.00617715)|

+
〉
,
(-0.318654+0.552848)|

−
〉
}
Use property
"StatesAssociation"
to obtain the association of measurement outcomes with their corresponding quantum state:
In[141]:=
TraditionalForm@result["StatesAssociation"]
Out[141]//TraditionalForm=
|

+
〉
(-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.
In[142]:=
TraditionalForm@result["PostMeasurementState"]
Out[142]//TraditionalForm=
(0.592819+0.)|

+
〉〈

+
|+(0.407181+0.)|

−
〉〈

−
|
Find mean-value:
In[143]:=
result["Mean"]
Out[143]=
0.407181
Note by default, the mean value related to outcomes 0 and 1. If different values, they should be assigned when defining QuantumMeasurementOperator
In[144]:=
results2=
QuantumMeasurementOperator
["Z"{-1,1}][st]
Out[144]=
QuantumMeasurement
Target: {1}
Measurement Outcomes: 2

∑
j
outcomes
j
probability
j
:
In[148]:=
results2["Mean"]
Out[148]=
0.185638
Scope  
(1)

Applications  
(1)

Properties & Relations  
(1)

Interactive Examples  
(1)

SeeAlso
QuantumMeasurementOperator
 
▪
QuantumState
 
▪
QuantumOperator
RelatedGuides
▪
Wolfram Quantum Computation Framework
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com