Skip to contents

The operators and states of sympy.physics.quantum.cartesian: the position operators XOp(), YOp(), ZOp() and the momentum operator PxOp(), with their eigenstates XKet(), XBra(), PxKet(), PxBra() and the three dimensional PositionKet3D() and PositionBra3D(). Inner products give delta functions and plane waves; represent() gives the differential operators.

Usage

XOp(...)

YOp(...)

ZOp(...)

PxOp(...)

XKet(...)

XBra(...)

PositionState3D(...)

PositionKet3D(...)

PositionBra3D(...)

PxKet(...)

PxBra(...)

Px

Format

Px is SymPy's Px = PxOp('Px'), the momentum operator.

Arguments

...

Labels.

Value

A quantum operator or state.

Examples

x <- Symbol("x"); px <- Symbol("px")
qapply(XOp() * XKet(x))
#> x*|x>
XBra(x) * PxKet(px)
#> <x|px>