def test_represent_tgate():
 circuit = (TGate(0) * Qubit('01'))
 assert (Matrix([0, exp(((I * pi) / 4)), 0, 0]) == represent(circuit, nqubits=2))

def test_represent_tgate ( ) : circuit = ( TGate ( 0 ) * Qubit ( '01' ) ) assert ( Matrix ( [ 0 , exp ( ( ( I * pi ) / 4 ) ) , 0 , 0 ] ) == represent ( circuit , nqubits = 2 ) )
test the representation of the t gate .