Projector - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Physics : Projector

Physics[Projector] - compute the projector onto a space of states represented by the given (Ket) argument

Calling Sequence

Projector(K, dimension = N, quantumcontinuousbasis, subspace)

Parameters

K

-

a Ket state vector

N

-

positive integer, infinity, or an algebraic expression that could be positive or a positive integer, when the space of states is respectively continuous or discrete

quantumcontinuousbasis

-

(optional) indicates that the projector acts over a continuous space of states

subspace

-

(optional) indicates that the projector projects onto a subspace, so its dimension should not be used to update the dimension of the embedding space

Description

• 

The Projector command returns the quantum operator that projects onto a basis of a space of states. This operator is constructed as a sum of tensor products of Bras and Kets of the basis. To indicate that the space is a continuous space of states, use the quantumcontinuousbasis option, or set the label of the space (first argument of the given Ket) to represent a continuous space of states, by using the Setup command.

• 

The dimension of the space associated with each quantum number entering the Ket passed as first argument can be specified directly to Projector. If so, this information is automatically used to update the current Setup, unless the optional argument subspace is given, indicating that the dimensions given are not the ones of the embedding quantum space of states. Alternatively, you can set the dimension first, by using the Setup command, and then call Projector without specifying the dimension.

• 

In the case of a continuous space of states, if the dimension is not given and it is not known to the Setup command, this dimension is assumed to be from  to .

• 

When indicating the dimension as dimension = N, N can be a positive integer or an algebraic expression representing it, so that the dimension will be from 0 to N1 in the discrete case, and from N to N in the continuous case. You can also indicate directly a range of the form N=a..b, where a and b are also half-integers. When there are many quantum numbers, the dimension indicated in one of these ways will be assumed to be the same for all of them.

  

Alternatively, to indicate different dimensions for each quantum number, N should be a list of dimensions, so that the first dimension in the list is associated with the first quantum number, and so on, and each dimension is as in the previous paragraph.

• 

The %Projector command is the inert form of Projector; that is, it represents the same mathematical operation while displaying the operation unevaluated. To evaluate the operation, use the value command.

Examples

withPhysics:

Setupmathematicalnotation=true

mathematicalnotation=true

(1)

KetA,n

An

(2)

Projector,dimension=3

n=02AnAn

(3)

Setupcontinuousbasis=R

* Partial match of 'continuousbasis' against keyword 'quantumcontinuousbasis'

_______________________________________________________

quantumcontinuousbasis=R

(4)

KetR,x,y,z

Rx,y,z

(5)

Projector

Rx,y,zRx,y,zⅆxⅆyⅆz

(6)

A projector with different dimensions associated with each quantum number: the dimension information passed to Projector is automatically tracked in the Setup for later use.

ProjectorKetB,m,n,x,dimension=N,32..32,

x=0n=03m=0N1Bm,n32,xBm,n32,x

(7)

Setupbasisdim

* Partial match of 'basisdim' against keyword 'quantumbasisdimension'

_______________________________________________________

quantumbasisdimension=A=3,R=,B1=N,B2=32..32,B3=

(8)

A projector where some of the quantum numbers are associated with discrete spaces, and others with continuous spaces (note that you do not need to specify the dimensions again).

Setupcontinuous=B1,B3

* Partial match of 'continuous' against keyword 'quantumcontinuousbasis'

_______________________________________________________

quantumcontinuousbasis=R,B1,B3

(9)

ProjectorKetB,m,n,x

n=03NNBm,n32,xBm,n32,xⅆmⅆx

(10)

When projecting onto a subspace, use the optional argument subspace to avoid having the dimension information tracked in the Setup.

PCProjectorKetC,m,n,dimension=12..12,1,subspace

PCm=01Cm12,0Cm12,0

(11)

Setupbasisdim

* Partial match of 'basisdim' against keyword 'quantumbasisdimension'

_______________________________________________________

quantumbasisdimension=A=3,R=,B1=N,B2=32..32,B3=

(12)

To project the Ket ψ into a basis, take the scalar product of the Projector and the Ket.

expansionPC·Ketψ

expansionm=01Cm12,0|ψCm12,0

(13)

Set a bracket rule forC,m,n|ψ, and use the value command to perform the sum (rewrite it explicitly as a sum of terms).

%BracketBraC,m,n,Ketψ=ψn,m

Cm,n|ψ=ψn,m

(14)

Setup

bracketrules=Cm,n|ψ=ψn,m

(15)

valueexpansion

ψ0,12C12,0+ψ0,12C12,0

(16)

See Also

Ket, Physics, Physics conventions, Physics examples, Physics Updates, Tensors - a complete guide, Mini-Course Computer Algebra for Physicists, Setup