State Expression

Allows calculations involving both states and scalars. 

Input

  • $\psi$: State - Can be used as "s1" in the expression.
  • $\psi$: State - Can be used as "s2" in the expression.
  • Scalar - Can be used as "a" in the expression.
  • Scalar - Can be used as "b" in the expression.

Output

  • $\psi$: State - The mixed state generated from the expression.

Content

Allowed inputs into the expression-field are referenced on the Expressions-page. Unlike some other expression-nodes, this node does not have a direct dependence on a spatial dimension x, and so does not have access to several functions such as box or step. Also, this node does not have an option to automatically normalize resulting states.

Error messages

Similar to other expression-nodes, this node may show errors such as "parse error: error matching struct...". This error means the expression written in the text-field is wrong. 

Example