Group Abstract Group Abstract

Message Boards Message Boards

0
|
539 Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:

How to get the normalized post-measurement state?

Posted 3 months ago

I have this code to do a partial measurement on a 2-qubit system.

s=QuantumState["00"]/Sqrt[2]+QuantumState["01"]/Sqrt[6]+QuantumState["10"]I/Sqrt[6]+QuantumState["11"]/Sqrt[6];
s["Formula"]
(* measuring bit[1]*)
qmo=QuantumMeasurementOperator["ComputationalBasis",{1}];
qmo[s]["Probabilities"]
#["Formula"]&/@qmo[s]["StateAssociation"]

The issue is that the returned post-measurement states are not normalized. I'd appreciate it if anyone can let me know how to get the normalized states. Thank you!

Xiangyang Zhou

POSTED BY: Xiangyang Zhou
3 Replies
POSTED BY: Nikolay Murzin
Posted 3 months ago

That solved my problem, thank you. Just curious, why doesn't "Formula" give the normalized form directly? Is there any use case for the unnormalized form?

POSTED BY: Xiangyang Zhou

Use "Normalize": #["Normalize"]["Formula"]&/@qmo[s]["StateAssociation"]

POSTED BY: Nikolay Murzin
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard