project()#
- BasisTemplate.project(state)[source]#
Project a high-dimensional state vector to the subset of the high-dimensional space that can be represented by the basis.
This is done by
expressing the state in low-dimensional latent coordinates, then
reconstructing the high-dimensional state corresponding to those coordinates.
In other words,
project(Q)
is equivalent todecompress(compress(Q))
.- Parameters:
- states(n, …) ndarray
Matrix of n-dimensional state vectors, or a single state vector.
- Returns:
- state_projected(n, …) ndarray
Matrix of n-dimensional projected state vectors, or a single projected state vector.