(qubit, format='sympy')
return represent(qubit, format=format)
Coverts an Add/Mul of Qubit objects into it's matrix representation

    This function is the inverse of ``matrix_to_qubit`` and is a shorthand
    for ``represent(qubit)``.
Coverts an Add/Mul of Qubit objects into it's matrix representation
Coverts an Add / Mul of Qubit objects into it s matrix representation
def qubit_to_matrix(qubit, format='sympy'):
    """Coverts an Add/Mul of Qubit objects into it's matrix representation

    This function is the inverse of ``matrix_to_qubit`` and is a shorthand
    for ``represent(qubit)``.
    """
    return represent(qubit, format=format)
def qubit_to_matrix ( qubit , format = 'sympy' ) : return represent ( qubit , format = format )