<jupyter_start><jupyter_text>This is for the Thorlabs PDA36A at the 20dB setting.<jupyter_code># Enter the specs of the detector
nep = 2.34e-12  # in Watts per root hz
BW = 10e6  # Bandwidth in Hz
gain = 0.75e4  # gain in V/A
responsivity = 0.5  # Amps per Watt (assume 800 nm)
pmin = nep * np.sqrt(BW)
volts_min = pmin * responsivity * gain
print("voltage generated by p_min:",volts_min)<jupyter_output>voltage generated by p_min: 2.37170824513e-06<jupyter_text>Note that we need at least 10mV to even resolve a signal on the scope. So the NEP is only part of the story:<jupyter_code>scope_floor_factor = 0.010/volts_min
# the power has to be scope_floor_factor times larger in order to generate 10mV:
pmin * scope_floor_factor<jupyter_output><empty_output><jupyter_text>This setting (20dB) leaves plenty of bandwidth but can't resolve our signal (1.3uW). It's limited to double our signal.  Now for the 30dB setting:<jupyter_code>nep = 1.21e-12
BW = 260e3
gain = 2.38e4
responsivity = 0.5
pmin = nep * np.sqrt(BW)
volts_min = pmin * responsivity * gain
print(volts_min)
scope_floor_factor = 0.010/volts_min
# resolvable power:
pmin * scope_floor_factor<jupyter_output><empty_output><jupyter_text>On 30dB we start to hit the bandwidth limit but can resolve down to 0.8 uW (half our signal). Even so, we'd only get 10mV out of it.  Now the APD120A:<jupyter_code>nep = 0.2e-12
BW = 50e6
gain = 50000
responsivity = 25
pmin = nep * np.sqrt(BW)
volts_min = pmin * responsivity * gain
print(volts_min)
scope_floor_factor = 0.010/volts_min

# resolvable power:
pmin * scope_floor_factor<jupyter_output>0.00176776695297<jupyter_text>This can resolve down to 8nW so our 1.3uW would be ~1000x larger.Final question: what is the voltage generated by hitting it with a 1.3uW pulse?<jupyter_code>1.3e-6 * 50000 * 25  # watts times volts/amp times amps/watt gives volts:<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08421610169491525, 'fraction_numerical': 0.06832627118644068, 'mean_word_length': 5.035143769968051, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '299396', 'license': 'MIT', 'n_tokens_mistral': 812, 'n_tokens_neox': 702, 'n_words': 224, 'path': 'Detector metrics.ipynb', 'repo_name': 'Shannon2673/LabNotebooks', 'size': '1888'}