rand.random_orthonormal_basis ============================= .. py:module:: rand.random_orthonormal_basis .. autoapi-nested-parse:: Generates a random orthonormal basis. Functions --------- .. autoapisummary:: rand.random_orthonormal_basis.random_orthonormal_basis Module Contents --------------- .. py:function:: random_orthonormal_basis(dim, is_real = False, seed = None) Generate a real random orthonormal basis of given dimension :math:`d`. The basis is generated from the columns of a random unitary matrix of the same dimension as the columns of a unitary matrix typically form an orthonormal basis :cite:`SE_1688950`. .. rubric:: Examples To generate a random orthonormal basis of dimension :math:`4`, .. jupyter-execute:: from toqito.rand import random_orthonormal_basis random_orthonormal_basis(4, is_real = True) It is also possible to add a seed for reproducibility. .. jupyter-execute:: from toqito.rand import random_orthonormal_basis random_orthonormal_basis(2, is_real=True, seed=42) .. rubric:: References .. bibliography:: :filter: docname in docnames dim: int Number of elements in the random orthonormal basis. seed: int | None A seed used to instantiate numpy's random number generator.