<commit_before>"""
Functions for generating quantum objects.
TODO: add sparse and qtype to all relevant functions.
"""
# TODO: Graph states, cluster states, multidimensional

import numpy as np
import scipy.sparse as sp
from itertools import product
from quijy.core import (qjf, nmlz, kron, kronpow, eyepad, eye, trx, eyeplace)


def basis_vec(dir, dim, sparse=False):
def basis_vec(dir, dim, sparse=False, **kwargs):
    """
    Constructs a unit vector ket.

    Parameters<commit_msg>update basis_vec with kwargs<commit_after>"""
Functions for generating quantum objects.
TODO: add sparse and qtype to all relevant functions.
"""
# TODO: Graph states, cluster states, multidimensional

import numpy as np
import scipy.sparse as sp
from itertools import product
from quijy.core import (qjf, nmlz, kron, kronpow, eyepad, eye, trx, eyeplace)


def basis_vec(dir, dim, sparse=False, **kwargs):
    """
    Constructs a unit vector ket.

    Parameters
{'fraction_non_alphanumeric': 0.09052631578947369, 'fraction_numerical': 0.0, 'mean_word_length': 4.798780487804878, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1817706', 'n_tokens_mistral': 305, 'n_tokens_neox': 292, 'n_words': 116}