src/Pulses/PulComposite.cc
/* These functions are only active on propagators.  They will have no effect
   if there have been no propagators generated.                              */
These functions are only active on propagators.  They will have no effect
if there have been no propagators generated.
These functions are only active on propagators . They will have no effect if there have been no propagators generated .
void PulComposite::SetUBasis(gen_op& Op)
  {
  int i=0;
  if(Usteps)				
    { 					
    for(i=0; i<WFsteps; i++)
      Usteps[Uindex[i]].SetBasis(Op);
    }
  if(Usums)                            
    {					
    for(i=0; i<WFsteps; i++)
      Usums[i].SetBasis(Op);
    }
  }
void PulComposite :: SetUBasis ( gen_op & Op ) { int i = 0 ; if ( Usteps ) { for ( i = 0 ; i < WFsteps ; i ++ ) Usteps [ Uindex [ i ] ] . SetBasis ( Op ) ; } if ( Usums ) { for ( i = 0 ; i < WFsteps ; i ++ ) Usums [ i ] . SetBasis ( Op ) ; } }
These functions are only active on propagators.
These functions are only active on propagators .
// Input                CPul    : A composite pulse (this) // Output               void	: Hilbert space propagators for all //				  steps of the composite pulse are put //				  into the current working basis of Op // Note				: This assumes that the Hamiltonians //                                have already been calculated! // If step propagators exist // set the basis for each one // If sum propagators exist // set the basis for each one