Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
documentation:language_reference:functions:rotate [2016/10/10 09:41] – external edit 127.0.0.1 | documentation:language_reference:functions:rotate [2019/08/07 10:51] (current) – Major Update, including the mentioning of the rotation convention Simon Heinze | ||
---|---|---|---|
Line 2: | Line 2: | ||
### | ### | ||
- | // | + | //Rotate(M, R)//, //Rotate($\psi$, R)//, // |
+ | |||
+ | R needs to be a matrix of dimension N1×N2, where N2 equals the number of rows of M, or NFermion+NBoson of ψ, O or TB. The rotation matrix R is not required to be quadratic, it is therefore possible to use rotations to change the number of dimensions of the Hilbert-space. | ||
+ | |||
+ | R∗⋅RT=1 is not checked by Quanty, to allow scaling rotations. | ||
+ | |||
### | ### | ||
===== Input ===== | ===== Input ===== | ||
- | * psi or Opp : Wavefunction | + | * M, $\psi,O$ or TB : a quadratic (complex |
- | * rotmat | + | * R : a complex |
===== Output ===== | ===== Output ===== | ||
- | * psi or Opp : Wavefunction or operator | + | * M′, $\psi^\prime,O^\prime$ |
===== Example ===== | ===== Example ===== |