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

From blackwiki
Jump to navigation Jump to search
imported>DePiep
(sandbox other)
imported>Mgkrupa
(Added item)
 
Line 4: Line 4:
 
This template uses {{tl|braket}}.
 
This template uses {{tl|braket}}.
  
==Application==
+
== Application ==
 +
 
 
There are two parameters, which is the text to be displayed as the bra and ket labels.
 
There are two parameters, which is the text to be displayed as the bra and ket labels.
  
==Examples==
+
== Examples ==
 +
 
 
The [[Bra–ket notation#Inner products and bras|inner product]] of the kets {{ket|ξ}} and {{ket|ψ}} can be written: {{bra-ket|ψ|ξ}} = {{bra-ket|ξ|ψ}}<sup>†</sup>, that is <code><nowiki>{{bra-ket|ψ|ξ}} = {{bra-ket|ξ|ψ}}<sup>†</sup></nowiki></code>.
 
The [[Bra–ket notation#Inner products and bras|inner product]] of the kets {{ket|ξ}} and {{ket|ψ}} can be written: {{bra-ket|ψ|ξ}} = {{bra-ket|ξ|ψ}}<sup>†</sup>, that is <code><nowiki>{{bra-ket|ψ|ξ}} = {{bra-ket|ξ|ψ}}<sup>†</sup></nowiki></code>.
  
 
Using {{tl|math}}, the inner product can be written: {{math|{{bra-ket|ψ|ξ}}}}, that is <code><nowiki>{{math|{{bra-ket|ψ|ξ}}}}</nowiki></code>.
 
Using {{tl|math}}, the inner product can be written: {{math|{{bra-ket|ψ|ξ}}}}, that is <code><nowiki>{{math|{{bra-ket|ψ|ξ}}}}</nowiki></code>.
  
==See also==
+
== See also ==
 +
 
 +
* {{tl|pars}}
 +
 
 
{{Math templates|notation}}
 
{{Math templates|notation}}
  

Latest revision as of 17:10, 3 August 2020

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