Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

QuantumFramework

Tutorials

  • Getting Started

Guides

  • Wolfram Quantum Computation Framework

Tech Notes

  • Bell's Theorem
  • Circuit Diagram
  • Exploring Fundamentals of Quantum Theory
  • QPU Service Connection
  • Quantum object abstraction
  • Quantum Optimization
  • Second Quantization Functions
  • Tensor Network
  • Quantum Computation

Symbols

  • QuantumBasis
  • QuantumChannel
  • QuantumCircuitMultiwayGraph [EXPERIMENTAL]
  • QuantumCircuitOperator
  • QuantumDistance
  • QuantumEntangledQ
  • QuantumEntanglementMonotone
  • QuantumEvolve
  • QuantumMeasurement
  • QuantumMeasurementOperator
  • QuantumMeasurementSimulation
  • QuantumMPS [EXPERIMENTAL]
  • QuantumOperator
  • QuantumPartialTrace
  • QuantumPhaseSpaceTransform
  • QuantumShortcut [EXPERIMENTAL]
  • QuantumStateEstimate [EXPERIMENTAL]
  • QuantumState
  • QuantumTensorProduct
  • QuantumWignerMICTransform [EXPERIMENTAL]
  • QuantumWignerTransform [EXPERIMENTAL]
  • QuditBasis
  • QuditName
Wolfram`QuantumFramework`
QuantumOperator
​
QuantumOperator
[rep,order,qb]
represents an operator with matrix representation
rep
that acts on a state at the qubits indexed in
order
, in the discrete quantum basis
qb
.
​
​
QuantumOperator
[operator,order,qb]
represents an association
operator
that acts on a state at the qubits indexed in
order
, in the discrete quantum basis
qb
.
​
​
QuantumOperator
["name",order,qb]
represents the named operator
"name"
that acts on a state at the qubits indexed in
order
, in the discrete quantum basis
qb
.
​
​
QuantumOperator
[qo,basis]
changes the basis of the
QuantumOperator
qo
to the discrete quantum basis
qb
.
​
Details and Options

Examples  
(12)
Basic Examples  
(3)
Construct an operator given by a matrix of components in a given basis:
In[1]:=
QuantumOperator
[{{1,-1},{1,1}},{1},"X"]
Out[1]=
QuantumOperator
Picture: Schrödinger
Arity: 1
Dimension: 2→2
Qudits: 1→1

​
Create a CNOT gate:
In[1]:=
cnot=
QuantumOperator
["CNOT",{3,4}]
Out[1]=
QuantumOperator
Picture: Schrödinger
Arity: 2
Dimension: 4→4
Qudits: 2→2

In[2]:=
{#["ControlOrder"],#["TargetOrder"]}&@cnot
Out[2]=
{{3},{4}}
​
Define a Pauli-X operator acting on qubit-3 only:
In[1]:=
QuantumOperator
["X",{3}]
Out[1]=
QuantumOperator
Picture: Schrödinger
Arity: 1
Dimension: 2→2
Qudits: 1→1

In[2]:=
QuantumOperator
["X",{3}]
QuantumState
["000"]["Formula"]
Out[2]=
|001〉
Scope  
(3)

Applications  
(2)

Properties & Relations  
(4)

SeeAlso
QuantumState
 
▪
QuantumBasis
 
▪
QuantumMeasurementOperator
RelatedGuides
▪
Wolfram Quantum Computation Framework
""

Powered by the Wolfram Cloud More about Wolfram Technology

© 2022 Wolfram Research, Inc. All rights reserved. Terms of Use Privacy Contact Us