#NEWLINE# def get_target_matrix( self , format = 'sympy' ) : #NEWLINE# #INDENT# if ( format == 'sympy' ) : #NEWLINE# #INDENT# return Matrix ( [ [ 1 , 0 ] , [ 0 , exp ( ( ( ( Integer ( 2 ) * pi ) * I ) / ( Integer ( 2 ) ** self . k ) ) ) ] ] ) #NEWLINE# #UNINDENT# raise NotImplementedError ( ( 'Invalid format for the R_k gate: %r' % format ) )