Physics[Bracket]  compute the scalar product between Bras, Kets, and quantum operators in Dirac's notation

Calling Sequence


Bracket(H)
Bracket(B, K)
Bracket(B, H, K)
Bracket(a, b, c, ...)


Parameters


H



an algebraic expression, typically a linear quantum operator, defined as such by the Setup, Annihilation, Creation, or Projector commands

B



a Bra state vector of a space of quantum states

K



a Ket state vector of a space of quantum states

a, b, c, ...



shortcut notation: algebraic expressions representing labels and quantum numbers of a Bra and a Ket, possibly including a quantum operator between them when there is an odd number of arguments





Description


•

A Ket state vector represents the quantum state of a physical system. A Bra is also a vector in a space of quantum states and corresponds to a Ket vector in that one is obtained from the other through Hermitian conjugation.

•

The Bracket(B, K) command (note the 'c' between Bra and Ket) performs the scalar product, also called the inner product, between a Bra B and a Ket K. The Bracket(B, H, K) command, where H represents a linear quantum operator, defined as such by the Setup command, or returned by one of the Annihilation, Creation, or Projector commands, returns the scalar product between the Bra B and the Ket resulting from the action of H on the Ket K. When H is not an operator, Bracket(B, H, K) transforms into H*Bracket(B, K).

•

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

•

A shortcut notation for Bracket consists of the following:


 if an even number of arguments N are passed, and the first and (N/2 + 1)th are names (so they can represent labels for spaces of states), and the rest of the arguments are not quantum operators, then for example, Bracket(B, n1,n2, K, m1,m2) is transformed into Bracket(Bra(B, n1,n2), Ket(K, m1,m2)).


 if an odd number of arguments N are passed, where the (N+1)/2th argument is , then for example, Bracket(B, n1,n2, H, K, m1,m2) is transformed into Bracket(Bra(B, n1,n2), H, Ket(K, m1,m2)).

•

The Bracket between a Bra and a Ket is expressed in terms of KroneckerDeltas, when the state vectors belong to a discrete space of states, or by using Dirac functions, when the state vectors belong to a continuous space of states. To make the label (first argument) of a Bra or Ket be associated with a continuous space of states, use the Setup command, as in ; otherwise, it is assumed that the Bra or Ket corresponds to a discrete space of states.

•

When the Bracket cannot be resolved, the operation is returned unevaluated; see details in Physics[`.`].



Examples


Consider two Kets belonging to the same basis, labeled with the letter (psi).
>


>


 (1) 
>


 (2) 
>


 (3) 
To construct the corresponding Bras, you can enter them directly by using the Bra command (as in BK1), or take the Hermitian conjugate by using the Dagger command (as in BK2).
>


 (4) 
>


 (5) 
To perform the scalar product, use the Bracket command.
>


 (6) 
You can also use the scalar product operator, Physics[`.`]
>


 (7) 
Notice that the above is the product of two Kronecker deltas. This is so because these Kets are assumed to be part of the same discrete basis. To indicate that they belong to a continuous space of states, use the Setup command.
>


 (8) 
>


 (9) 
In the above, you see a 2dimensional Dirac function. To expand this Dirac function into a product of two 1dimensional Dirac functions, use the expand command. When taking the Bracket between state vectors with different labels, unless a bracket rule for them is known to the system, the result is returned unevaluated.
>


 (10) 
To set a rule for the evaluation of these brackets, see Setup and the example below.
You can also set the label (formerly set to represent a continuous space of states) to represent a discrete space of states by using the Setup command again. When resetting a label from a continuous to a discrete space of states, you first need to clear the previous setting (a two step operation), or directly redo the setting in one step, as shown below.
>


 (11) 
For discrete bases, it is possible to define creation and annihilation operators acting on Kets belonging to this space of states (that is, to the basis labeled by the Ket's first argument). For these purposes, use the Annihilation and Creation operators.
>


 (12) 
>


 (13) 
In the above, and represent the annihilation (with respect to the first quantum number) and creation (with respect to the second quantum number) operators, respectively; their actions over the Ket are shown below.
>


 (14) 
>


 (15) 
where `.` is the scalar product operator in the Physics package.
The following are the related Bracket operations, expressed in the inert form %Bracket; inert computations are evaluated by using the value command.
>


 (16) 
>


 (17) 
>


 (18) 
>


 (19) 
Let and represent "position" and "momentum" state vectors; their scalar product is unknown to the system.
>


 (20) 
Let their scalar product be the corresponding normalized plane wave (see References below).
>


 (21) 
To set the above as a rule when computing brackets between the vectors and , use the Setup command.
>


 (22) 
Now this rule is used automatically. Note the use of shortcut notation in the example below.
>


 (23) 
>


 (24) 
Construct the Projector onto the basis .
>


 (25) 
>


 (26) 
Consider the representation of this Projector: it is directly computable from the bracket rule already set (use delay evaluation quotes and perform the operation in the next line by using the ditto operator, %).
>


 (27) 
>


 (28) 
>




See Also


Annihilation, Bra, Creation, Dagger, Ket, KroneckerDelta, Physics, Physics conventions, Physics examples, Physics/`.`, Physics/`*`, Projector, Setup, value


References



CohenTannoudji, C.; Diu, B.; and Laloe, F. Quantum Mechanics. Chapter II. Paris, France: Hermann, 1977.


