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!!