Liking cljdoc? Tell your friends :D

org.soulspace.qclojure.domain.math.clojure.complex-linear-algebra


cholesky-decompositionclj

(cholesky-decomposition A)

Compute Cholesky decomposition of a complex Hermitian positive definite matrix A. Returns a map with lower triangular matrix L in SoA form.

Compute Cholesky decomposition of a complex Hermitian positive definite matrix A.
Returns a map with lower triangular matrix L in SoA form.
sourceraw docstring

close-matrices?clj

(close-matrices? A B tol)
source

complex-matrix?clj

(complex-matrix? m)
source

complex-scalar?clj

(complex-scalar? x)
source

complex-vector?clj

(complex-vector? v)
source

condition-numberclj

(condition-number A)

Compute condition number of a complex matrix A. Returns a positive real number or Double/POSITIVE_INFINITY if A is singular.

Compute condition number of a complex matrix A.
Returns a positive real number or Double/POSITIVE_INFINITY if A is singular.
sourceraw docstring

conjugate-transposeclj

(conjugate-transpose A)
source

default-toleranceclj

source

density-matrixclj

(density-matrix psi)

Compute the density matrix from a pure state vector psi. Returns a density matrix in SoA form.

Compute the density matrix from a pure state vector psi.
Returns a density matrix in SoA form.
sourceraw docstring

eigen-generalclj

(eigen-general A)
(eigen-general A eps)

Compute eigen-decomposition of a complex square matrix A. Returns a map with eigenvalues and eigenvectors in SoA form. Optionally accepts a tolerance for numerical stability.

Compute eigen-decomposition of a complex square matrix A.
Returns a map with eigenvalues and eigenvectors in SoA form.
Optionally accepts a tolerance for numerical stability.
sourceraw docstring

eigen-hermitianclj

(eigen-hermitian A)
(eigen-hermitian A eps)

Compute eigen-decomposition of a complex Hermitian matrix A. Returns a map with eigenvalues and eigenvectors in SoA form. Optionally accepts a tolerance for numerical stability.

Compute eigen-decomposition of a complex Hermitian matrix A.
Returns a map with eigenvalues and eigenvectors in SoA form.
Optionally accepts a tolerance for numerical stability.
sourceraw docstring

ensure-complex-matrixclj

(ensure-complex-matrix m)
source

ensure-complex-scalarclj

(ensure-complex-scalar x)
source

ensure-complex-vectorclj

(ensure-complex-vector v)
source

hadamard-productclj

(hadamard-product A B)
source

hermitian?clj

(hermitian? A tol)
source

inner-productclj

(inner-product x y)
source

inverseclj

(inverse A)

Inverse of complex matrix via Gauss-Jordan.

Inverse of complex matrix via Gauss-Jordan.
sourceraw docstring

kronecker-productclj

(kronecker-product A B)
source

lu-decompositionclj

(lu-decomposition A)
(lu-decomposition A eps)

Compute LU decomposition of a complex matrix A with partial pivoting. Returns a map with permutation vector P, lower triangular L and upper triangular U matrices in SoA form.

Compute LU decomposition of a complex matrix A with partial pivoting.
Returns a map with permutation vector P, lower triangular L and upper triangular U matrices in SoA form.
sourceraw docstring

make-complexclj

(make-complex r i)
source

matrix-addclj

(matrix-add A B)
source

matrix-expclj

(matrix-exp A)

Compute matrix exponential of a complex matrix A. Returns a complex matrix in SoA form.

Compute matrix exponential of a complex matrix A.
Returns a complex matrix in SoA form.
sourceraw docstring

matrix-logclj

(matrix-log A)

Compute matrix logarithm of a complex matrix A. Returns a complex matrix in SoA form.

Compute matrix logarithm of a complex matrix A.
Returns a complex matrix in SoA form.
sourceraw docstring

matrix-multiplyclj

(matrix-multiply A B)
source

matrix-scaleclj

(matrix-scale A a)
source

matrix-shapeclj

(matrix-shape A)
source

matrix-sqrtclj

(matrix-sqrt A)

Compute matrix square root of a complex matrix A. Returns a complex matrix in SoA form.

Compute matrix square root of a complex matrix A.
Returns a complex matrix in SoA form.
sourceraw docstring

matrix-subtractclj

(matrix-subtract A B)
source

matrix-vector-productclj

(matrix-vector-product A x)
source

norm2clj

(norm2 x)

Compute L2 norm of complex vector x (SoA form). Returns a non-negative real number.

Compute L2 norm of complex vector x (SoA form).
Returns a non-negative real number.
sourceraw docstring

outer-productclj

(outer-product x y)

Compute outer product of complex vectors x and y. Returns a complex matrix in SoA form.

Compute outer product of complex vectors x and y.
Returns a complex matrix in SoA form.
sourceraw docstring

positive-semidefinite?clj

(positive-semidefinite? A)
(positive-semidefinite? A eps)

Check if complex matrix A is positive semidefinite. Returns true if A is PSD, false otherwise. Optionally accepts a tolerance for numerical stability.

Check if complex matrix A is positive semidefinite.
Returns true if A is PSD, false otherwise.
Optionally accepts a tolerance for numerical stability.
sourceraw docstring

projector-from-stateclj

(projector-from-state psi)

Compute the projector |psi><psi| from a quantum state vector psi. Returns a density matrix in SoA form.

Compute the projector |psi><psi| from a quantum state vector psi.
Returns a density matrix in SoA form.
sourceraw docstring

qr-decompositionclj

(qr-decomposition A)

Compute QR decomposition of a complex matrix A. Returns a map with orthogonal matrix Q and upper triangular matrix R in SoA form.

Compute QR decomposition of a complex matrix A.
Returns a map with orthogonal matrix Q and upper triangular matrix R in SoA form.
sourceraw docstring

solve-linearclj

(solve-linear A b)

Solve complex linear system A x = b and return complex vector representation.

Solve complex linear system A x = b and return complex vector representation.
sourceraw docstring

spectral-normclj

(spectral-norm A)

Compute spectral norm of complex matrix A via power iteration on A^H A with Rayleigh quotient convergence.

Compute spectral norm of complex matrix A via power iteration on A^H A with Rayleigh quotient convergence.
sourceraw docstring

state-normalizeclj

(state-normalize state)

Normalize a quantum state vector psi. Returns a new state vector with unit norm.

Normalize a quantum state vector psi.
Returns a new state vector with unit norm.
sourceraw docstring

svdclj

(svd A)
(svd A eps)

Compute singular value decomposition of a complex matrix A. Returns a map with singular values and left/right singular vectors in SoA form. Optionally accepts a tolerance for numerical stability.

Compute singular value decomposition of a complex matrix A.
Returns a map with singular values and left/right singular vectors in SoA form.
Optionally accepts a tolerance for numerical stability.
sourceraw docstring

traceclj

(trace A)

Compute trace of complex matrix A (SoA form). Returns a complex scalar.

Compute trace of complex matrix A (SoA form).
Returns a complex scalar.
sourceraw docstring

trace-one?clj

(trace-one? rho)
(trace-one? rho eps)

Check if a density matrix rho has trace one. Optionally accepts a tolerance for numerical stability.

Check if a density matrix rho has trace one.
Optionally accepts a tolerance for numerical stability.
sourceraw docstring

transposeclj

(transpose A)
source

unitary?clj

(unitary? U)
(unitary? U eps)

Check if complex matrix U is unitary (U^H U = I). Returns true if unitary, false otherwise. Optionally accepts a tolerance for numerical stability.

Check if complex matrix U is unitary (U^H U = I).
Returns true if unitary, false otherwise.
Optionally accepts a tolerance for numerical stability.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close