Skip to content

Commit

Permalink
Test pulse clipping fix Osx #1. (#3144)
Browse files Browse the repository at this point in the history
  • Loading branch information
taalexander authored Sep 25, 2019
1 parent 0e4735a commit ef08f12
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions qiskit/pulse/commands/sample_pulse.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def samples(self):
"""Return sample values."""
return self._samples

def _clip(self, samples: np.ndarray, epsilon: float = 1e-6):
def _clip(self, samples: np.ndarray, epsilon: float = 1e-5):
"""If samples are within epsilon of unit norm, clip sample by reducing norm by (1-epsilon).
If difference is greater than epsilon error is raised.
Expand Down Expand Up @@ -86,8 +86,10 @@ def _clip(self, samples: np.ndarray, epsilon: float = 1e-6):

return samples

def draw(self, dt: float = 1, style: Optional['PulseStyle'] = None,
filename: Optional[str] = None, interp_method: Optional[Callable] = None,
def draw(self, dt: float = 1,
style: Optional['PulseStyle'] = None,
filename: Optional[str] = None,
interp_method: Optional[Callable] = None,
scaling: float = 1, interactive: bool = False):
"""Plot the interpolated envelope of pulse.
Expand Down

0 comments on commit ef08f12

Please sign in to comment.