def single_gate_matrix(gate, params=None):
<EOL>(theta, phi, lam) = map(float, single_gate_params(gate, params))<EOL>return np.array([[np.cos(theta / <NUM_LIT:2>),<EOL>-np.exp(<NUM_LIT> * lam) * np.sin(theta / <NUM_LIT:2>)],<EOL>[np.exp(<NUM_LIT> * phi) * np.sin(theta / <NUM_LIT:2>),<EOL>np.exp(<NUM_LIT> * phi + <NUM_LIT> * lam) * np.cos(theta / <NUM_LIT:2>)]])<EOL>
Get the matrix for a single qubit.

    Args:
        gate(str): the single qubit gate name
        params(list): the operation parameters op['params']
    Returns:
        array: A numpy array representing the matrix