Wolfram`QuantumFramework`
QuantumOperator |
|
| | ||||
|
| | ||||
| |
Details and Options
Examples
(14)
Basic Examples
(4)
Construct an operator given by a matrix of components in a given basis:
In[1]:=
QuantumOperator |
Out[1]=
QuantumOperator
|
Create a CNOT gate:
In[1]:=
cnot=
["CNOT",{3,4}]
QuantumOperator |
Out[1]=
QuantumOperator
|
In[2]:=
{#["ControlOrder"],#["TargetOrder"]}&@cnot
Out[2]=
{{3},{4}}
Define a Pauli-X operator acting on qubit-3 only:
In[1]:=
QuantumOperator |
Out[1]=
QuantumOperator
|
In[2]:=
QuantumOperator |
QuantumState |
Out[2]=
|001〉
Controlled operators, for example acting "X" on target qubits, with many controlled-0 and 1 qubits:
In[1]:=
target={1,2};ctrl1={3};ctrl0={4,5};cu=
[{"C","X"{1,2},ctrl1,ctrl0}]
QuantumOperator |
Out[1]=
QuantumOperator
|
In[2]:=
cu["CircuitDiagram"]
Out[2]=
Scope
(3)
Applications
(2)
Properties & Relations
(5)
|
|
""