Connecting to Singlequantum by Singlequantum in Python
Instrument Card
Device Specification: here
Manufacturer card: SINGLEQUANTUM
At Single Quantum, we confront every challenge with innovation, dedication, and passion. Founded in 2012, our team emerged as true pioneers of single photon detection technology: we were among the first to manufacture and commercialize superconducting nanowire single photon detectors. Since then, our multi-channel Single Quantum Eos photon detection system has been chosen by more than 100 academic and industrial labs all over the world to perform complex optical measurements.
- Headquarters: Delft, Zuid-Holland, The Netherlands
- Yearly Revenue (millions, USD): 5
- Vendor Website: here
Connect to the Singlequantum in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
To connect to a Singlequantum Photon Counting System using Qcodes Community, you can use the provided WebSQControlqcode
class. Here’s an example script that demonstrates how to connect to the instrument and perform some basic operations:
from qcodes import Stationfrom qcodes.instrument_drivers.singlequantum.WebSQControlqcode import WebSQControlqcode
# Create a station to hold the instrumentstation = Station()
# Connect to the Singlequantum Photon Counting Systeminstrument = WebSQControlqcode('singlequantum', address='localhost', port=12000)station.add_component(instrument)
# Set the bias current to 10 uAinstrument.bias_current(10)
# Enable the detectorsinstrument.detectors(True)
# Set the measurement period to 100 msinstrument.measurement_periode(100)
# Acquire 5 pointsinstrument.npts(5)counts = instrument.counters()
# Print the acquired countsprint(counts)
# Disconnect from the instrumentinstrument.close()
In this script, we first create a Station
object to hold the instrument. Then, we create an instance of the WebSQControlqcode
class and add it to the station. We can then use the instrument’s parameters and methods to interact with the Singlequantum Photon Counting System. In this example, we set the bias current, enable the detectors, set the measurement period, and acquire counts for 5 points. Finally, we print the acquired counts and close the connection to the instrument.