You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This particular feature may be of use if we wish to generate a collection of quantum states (basis of vectors) that have the property of being orthonormal. The columns of a randomly generated unitary matrix can be used to generate an orthonormal basis
Something like this could be used:
defrandom_orthonormal_basis(dim: int) ->list[np.ndarray]:
# Generate a random unitary matrixU=unitary_group.rvs(dim)
# The columns of U form an orthonormal basisbasis= [U[:, i] foriinrange(dim)]
returnbasis
This feature should live in rand/random_orthonormal_basis.py and would need to have the requisite coverage and testing in tests/test_random_orthonormal_basis.py.
The text was updated successfully, but these errors were encountered:
This particular feature may be of use if we wish to generate a collection of quantum states (basis of vectors) that have the property of being orthonormal. The columns of a randomly generated unitary matrix can be used to generate an orthonormal basis
Something like this could be used:
This feature should live in
rand/random_orthonormal_basis.py
and would need to have the requisite coverage and testing intests/test_random_orthonormal_basis.py
.The text was updated successfully, but these errors were encountered: