#NEWLINE# def _plot_measured_wires( self ) : #NEWLINE# #INDENT# ismeasured = self . _measurements ( ) #NEWLINE# xstop = self . _gate_grid [ ( - 1 ) ] #NEWLINE# dy = 0.04 #NEWLINE# for im in ismeasured : #NEWLINE# #INDENT# xdata = ( self . _gate_grid [ ismeasured [ im ] ] , ( xstop + self . scale ) ) #NEWLINE# ydata = ( ( self . _wire_grid [ im ] + dy ) , ( self . _wire_grid [ im ] + dy ) ) #NEWLINE# line = Line2D ( xdata , ydata , color = 'k' , lw = self . linewidth ) #NEWLINE# self . _axes . add_line ( line ) #NEWLINE# #UNINDENT# for ( i , g ) in enumerate ( self . _gates ( ) ) : #NEWLINE# #INDENT# if ( isinstance ( g , CGate ) or isinstance ( g , CGateS ) ) : #NEWLINE# #INDENT# wires = ( g . controls + g . targets ) #NEWLINE# for wire in wires : #NEWLINE# #INDENT# if ( ( wire in ismeasured ) and ( self . _gate_grid [ i ] > self . _gate_grid [ ismeasured [ wire ] ] ) ) : #NEWLINE# #INDENT# ydata = ( min ( wires ) , max ( wires ) ) #NEWLINE# xdata = ( ( self . _gate_grid [ i ] - dy ) , ( self . _gate_grid [ i ] - dy ) ) #NEWLINE# line = Line2D ( xdata , ydata , color = 'k' , lw = self . linewidth ) #NEWLINE# self . _axes . add_line ( line )