silq.tests.mocks.mock_interfaces package¶
Submodules¶
silq.tests.mocks.mock_interfaces.mock_AWG_interface module¶
-
class
silq.tests.mocks.mock_interfaces.mock_AWG_interface.DCPulseImplementation(pulse_requirements=[])[source]¶ Bases:
silq.pulses.pulse_modules.PulseImplementation-
pulse_class¶ alias of
silq.pulses.pulse_types.DCPulse
-
-
class
silq.tests.mocks.mock_interfaces.mock_AWG_interface.MockAWGInterface(instrument_name, **kwargs)[source]¶ Bases:
silq.tests.mocks.mock_interfaces.mock_interface.MockInterface-
setup(**kwargs)[source]¶ Set up instrument after layout has been targeted by pulse sequence.
Needs to be implemented in subclass.
- Parameters
samples – Number of acquisition samples. If None, it will use the previously set value.
input_connections – Input
Connectionlist of instrument, needed by some interfaces to setup the instrument.output_connections – Output
Connectionlist of instrument, needed by some interfaces to setup the instrument.repeat – Repeat the pulse sequence indefinitely. If False, calling
Layout.start()will only run the pulse sequence once.**kwargs – Additional interface-specific kwarg.
- Returns
setup flags (see
Layout.flags)
-
-
class
silq.tests.mocks.mock_interfaces.mock_AWG_interface.SinePulseImplementation(pulse_requirements=[])[source]¶ Bases:
silq.pulses.pulse_modules.PulseImplementation-
pulse_class¶ alias of
silq.pulses.pulse_types.SinePulse
-
silq.tests.mocks.mock_interfaces.mock_digitizer_interface module¶
-
class
silq.tests.mocks.mock_interfaces.mock_digitizer_interface.MockDigitizerInterface(instrument_name, **kwargs)[source]¶ Bases:
silq.tests.mocks.mock_interfaces.mock_interface.MockInterface-
setup(samples, **kwargs)[source]¶ Set up instrument after layout has been targeted by pulse sequence.
Needs to be implemented in subclass.
- Parameters
samples – Number of acquisition samples. If None, it will use the previously set value.
input_connections – Input
Connectionlist of instrument, needed by some interfaces to setup the instrument.output_connections – Output
Connectionlist of instrument, needed by some interfaces to setup the instrument.repeat – Repeat the pulse sequence indefinitely. If False, calling
Layout.start()will only run the pulse sequence once.**kwargs – Additional interface-specific kwarg.
- Returns
setup flags (see
Layout.flags)
-
silq.tests.mocks.mock_interfaces.mock_interface module¶
-
class
silq.tests.mocks.mock_interfaces.mock_interface.MockInterface(instrument_name, **kwargs)[source]¶ Bases:
silq.instrument_interfaces.interface.InstrumentInterface
silq.tests.mocks.mock_interfaces.mock_trigger_interface module¶
-
class
silq.tests.mocks.mock_interfaces.mock_trigger_interface.MockTriggerInterface(instrument_name, **kwargs)[source]¶ Bases:
silq.tests.mocks.mock_interfaces.mock_interface.MockInterface-
setup(**kwargs)[source]¶ Set up instrument after layout has been targeted by pulse sequence.
Needs to be implemented in subclass.
- Parameters
samples – Number of acquisition samples. If None, it will use the previously set value.
input_connections – Input
Connectionlist of instrument, needed by some interfaces to setup the instrument.output_connections – Output
Connectionlist of instrument, needed by some interfaces to setup the instrument.repeat – Repeat the pulse sequence indefinitely. If False, calling
Layout.start()will only run the pulse sequence once.**kwargs – Additional interface-specific kwarg.
- Returns
setup flags (see
Layout.flags)
-
-
class
silq.tests.mocks.mock_interfaces.mock_trigger_interface.TriggerPulseImplementation(pulse_requirements=[])[source]¶ Bases:
silq.pulses.pulse_modules.PulseImplementation-
pulse_class¶ alias of
silq.pulses.pulse_types.TriggerPulse
-