TransWikia.com

Typing expectation value in LyX

TeX - LaTeX Asked by E Be on July 31, 2021

In quantum mechanics it is often needed to write the expectation value of an observable:

enter image description here

How do I type such in LyX?
I can write a bra using leftlangle ___ right| and a ket with left| ___ rightrangle or simply with “Insert delimiters”, but I have no idea how to insert a third, middle object between a bra and a ket.

2 Answers

The right way to do this would be to use

leftlangle psi middle| A middle| psi rightrangle

To get an even more fancy view in LyX, you could wrap this in a math macro (Insert --> Math --> Macro)

Correct answer by akvilas on July 31, 2021

Include the physics package by typing:

usepackage{physics}

Then you can use bra and ket commands:

$bra{psi}Aket{psi}$

Answered by Appo on July 31, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP