quantax.state.VS_TYPE#

class quantax.state.VS_TYPE#

The enums to distinguish different variational states according to their dtypes.

0: real_or_holomorphic

Real parameters -> real outputs

or holomorphic complex -> complex

1: non_holomorphic

Non-holomorphic complex parameters -> complex outputs

\[∇_θ ψ = [∇_{θ_r} ψ_r + i ∇_{θ_r} ψ_i, ∇_{θ_i} ψ_r + i ∇_{θ_i} ψ_i]\]
2: real_to_complex

Real parameters -> complex outputs

\[∇_θ ψ = ∇_θ ψ_r + i ∇_θ ψ_i\]

Check the table below for the size and data type of gradient matrices with \(N_s\) sampels and \(N_p\) parameters.

VS_TYPE

\(O\) matrix as Jacobian

\(S\) matrix in SR

\(T\) matrix in MinSR

0: real

\(N_s \times N_p\) real

\(N_p \times N_p\) real

\(N_s \times N_s\) real

0: holomorphic

\(N_s \times N_p\) complex

\(N_p \times N_p\) complex

\(N_s \times N_s\) complex

1: non_holomorphic

\(N_s \times 2N_p\) complex

\(2N_p \times 2N_p\) real

\(2N_s \times 2N_s\) real

2: real_to_complex

\(N_s \times N_p\) complex

\(N_p \times N_p\) real

\(2N_s \times 2N_s\) real