This is for a producing inner products of quantum states in bra–ket notation , using wikicode, ideally with {{math }}, as an alternative to LaTeX in <math> mode.
This template uses {{braket }}.
Application
There are two parameters, which is the text to be displayed as the bra and ket labels.
Examples
The inner product of the kets |ξ⟩ and |ψ⟩ can be written: ⟨ ψ|ξ⟩ = ⟨ ξ|ψ⟩ † , that is {{bra-ket|ψ|ξ}} = {{bra-ket|ξ|ψ}}<sup>†</sup>
.
Using {{math }}, the inner product can be written: ⟨ ψ|ξ⟩ , that is {{math|{{bra-ket|ψ|ξ}}}}
.
See also
Math templates
Notation
bigmath for stand-alone formulas, using a bigger font to match \displaystyle PNG-rendered TeX formulas bra–ket notation frac for creating fractions (this template should NOT be used in science or mathematical articles: {{sfrac }}
should be used instead) intmath integral symbols angular brackets multiline delimiters (2-5 lines inclusive) math for inline formulas, to get a better matching font size and vertical alignment than with \textstyle (or the \scriptstyle kludge) PNG-rendered TeX formulas mathcal [mathematical] calligraphic font for use in mathematical formulas, as an alternative to \mathcal{...} in LaTeX markup
mvar a short form to refer to individual italicized maths variables in normal text arbitrary characters/diacritics set above/below one another radic sfrac for creating fractions (this template MUST be used in science or mathematical articles) sqrt tmath wraps a TeX math expression in <math> tags val to report measurement values, uncertainties and units vec for various overarrows, underarrows, pointing left, right or both ways