Difference between revisions of "Template:Bra-ket/doc"

From blackwiki
Jump to navigation Jump to search
imported>AquaDTRS
(moved to subcat)
imported>DePiep
(sandbox other)
Line 15: Line 15:
 
{{Math templates|notation}}
 
{{Math templates|notation}}
  
<includeonly>
+
<includeonly>{{sandbox other||
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->
 
[[Category:Mathematical formatting templates]]
 
[[Category:Mathematical formatting templates]]
 
[[Category:Physics formatting templates]]
 
[[Category:Physics formatting templates]]
</includeonly>
+
}}</includeonly>

Revision as of 13:55, 8 January 2019

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 Template:Rangle and Template:Rangle can be written: ⟨ψ|ξTemplate:Rangle = ⟨ξ|ψTemplate:Rangle, that is {{bra-ket|ψ|ξ}} = {{bra-ket|ξ|ψ}}<sup>†</sup>.

Using {{math}}, the inner product can be written: ⟨ψ|ξTemplate:Rangle, that is {{math|{{bra-ket|ψ|ξ}}}}.

See also