Connecting to CC1 by Qubitekk in Python
Instrument Card
Qubitekk’s 2-channel Coincidence Counter provides researchers with a low-cost solution for nanosecond resolution coincidence counting. A third gating channel makes the counter suitable for use with pulsed sources.
Device Specification: here
Manufacturer card: QUBITEKK
Qubitekk provides reliable products for generating, preparing, distributing, detecting, correlating and storing photonic qubits. The hardware that is needed to strengthen American leadership in quantum computing, communications, and sensing solutions is being developed and manufactured in San Diego County, CA.
- Headquarters: Vista, California, United States
- Yearly Revenue (millions, USD): 5
- Vendor Website: here
Connect to the CC1 in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
import instrumentkit as ik
# Connect to the CC1 Coincidence Countercc1 = ik.qubitekk.CC1.open_serial('COM8', 19200, timeout=1)
# Get the firmware versionfirmware_version = cc1.firmwareprint(f"Firmware version: {firmware_version}")
# Set the dwell time to 1 secondcc1.dwell_time = 1
# Get the counts of the first channelchannel_1_count = cc1.channel[0].countprint(f"Channel 1 count: {channel_1_count}")
# Enable the gatecc1.gate = True
# Enable the subtract featurecc1.subtract = True
# Set the trigger mode to continuouscc1.trigger_mode = "continuous"
# Set the coincidence window to 5 nscc1.window = 5
# Set the delay on Channel 1 to 4 nscc1.delay = 4
# Clear the current total counts on the counterscc1.clear_counts()
# Disconnect from the CC1 Coincidence Countercc1.close()
This script demonstrates how to connect to the CC1 Coincidence Counter, retrieve the firmware version, set various properties such as dwell time, gate, subtract, trigger mode, coincidence window, and delay, as well as clear the counts and disconnect from the instrument.