Message Boards Message Boards

0
|
1570 Views
|
1 Reply
|
2 Total Likes
View groups...
Share
Share this post:

Display states in customized basis

Posted 1 year ago

I'm new to the quantum computing interface in Mathematica. I'm trying to do some simple calculations with basis I choose. For example I define two bases:

Zbasis = QuantumBasis[<|"0" -> {1, 0}, "1" -> {0, 1}|>]
Xbasis = QuantumBasis[<|"+" -> {1/Sqrt[2], 1/Sqrt[2]}, 
   "-" -> {1/Sqrt[2], -1/Sqrt[2]}|>]

and I want to create an entangled state with looks like |00>+|11> in the Zbasis:

Psi = QuantumState[<|{0, 0} -> 1/Sqrt[2], {1, 1} -> 1/Sqrt[
     2]|>, {Zbasis, Zbasis}, 2];
Psi["Formula"]

but it failed to display the formula.

I also want to display the state in another basis like this:

A = QuantumState[{1, 0}, Zbasis];
B = QuantumState[{1, 0}, Xbasis];
state = QuantumTensorProduct[{A,B}];
QuantumState[state, {Xbasis, Zbasis}]["Formula"]

I received an error Missing["NotAvailable", "Formula"]. What should I change in the codes? Thank a lot for your help!!

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

Group Abstract Group Abstract