Wolfram`QuantumFramework`
QuantumBasis |
|
| | ||||
|
| | ||||
|
| | ||||
|
| | ||||
|
| |
Details and Options
Examples
(21)
Basic Examples
(7)
Create 2-dimensional basis:
In[1]:=
QuantumBasis |
Out[1]=
QuantumBasis
|
Note with no input, the basis is automatically set as 2D, bu default
In[2]:=
QuantumBasis |
QuantumBasis |
Out[2]=
True
Create 3-dimensional basis:
In[1]:=
QuantumBasis |
Out[1]=
QuantumBasis
|
Create a 2×2×2 dimensional basis (three qubits):
In[1]:=
QuantumBasis |
Out[1]=
QuantumBasis
|
In[2]:=
%["Dimensions"]
Out[2]=
{2,2,2}
Create composite basis of two 2 and 3-dimensional qudits:
In[1]:=
QuantumBasis |
Out[1]=
QuantumBasis
|
In[2]:=
%["Dimensions"]
Out[2]=
{2,3}
Create a 2-dimensional basis using explicit element representations:
In[1]:=
QuantumBasis |
Out[1]=
QuantumBasis
|
Construct a Pauli-Y basis for 2 qubits:
In[1]:=
basis=
["PauliY"]
QuantumBasis |
Out[1]=
QuantumBasis
|
Return a matrix representation:
In[2]:=
Normal/@basis["ElementAssociation"]
Out[2]=
,,-,
ψ
y
-
2
1
2
ψ
y
+
2
1
2
Represent the Bell basis for a single qubit (default):
In[1]:=
basis=
["Bell"]
QuantumBasis |
Out[1]=
QuantumBasis
|
Return its element names:
In[2]:=
basis["Names"]
Out[2]=
{|〉,|〉,|〉,|〉}
-
Φ
+
Φ
-
Ψ
+
Ψ
Scope
(8)
Generalizations & Extensions
(1)
Applications
(1)
Properties & Relations
(4)
|
|
""