mirror of
https://github.com/nqrduck/quackseq.git
synced 2024-11-23 22:32:27 +00:00
Update to simpler readout scheme.
This commit is contained in:
parent
40a2ecc029
commit
4aaf564996
3 changed files with 3 additions and 26 deletions
|
@ -295,26 +295,3 @@ class TableOption(Option):
|
||||||
return obj
|
return obj
|
||||||
|
|
||||||
|
|
||||||
class ReadoutOption(TableOption):
|
|
||||||
"""Readout Option for Phase Table processing.
|
|
||||||
|
|
||||||
The Readout Option is a special TableOption that is used for the processing of phase tables (see phase_table.py).
|
|
||||||
The rows are the phase cycles of the sequence.
|
|
||||||
|
|
||||||
The columns have two different types of options:
|
|
||||||
- NumericOption: The phase value of the phase cycle.
|
|
||||||
- FunctionOption: The function that is applied to the phase cycle. Usually this is just +1, -1 or 0.
|
|
||||||
|
|
||||||
"""
|
|
||||||
|
|
||||||
def __init__(self) -> None:
|
|
||||||
"""Initializes the ReadoutOption."""
|
|
||||||
super().__init__("Readout Option")
|
|
||||||
|
|
||||||
def set_n_phase_cycles(self, n_phase_cycles: int) -> None:
|
|
||||||
"""Sets the number of phase cycles in the readout option.
|
|
||||||
|
|
||||||
Args:
|
|
||||||
n_phase_cycles (int): The number of phase cycles.
|
|
||||||
"""
|
|
||||||
self.set_n_rows(n_phase_cycles)
|
|
|
@ -24,7 +24,7 @@ def create_COMPFID():
|
||||||
COMPFID.add_readout_event("rx", "100u")
|
COMPFID.add_readout_event("rx", "100u")
|
||||||
|
|
||||||
# No phase shifiting of the receive data but weighting of -1 for the 45 degree pulse, +1 for the 135 degree pulse, -1 for the 225 degree pulse and +1 for the 315 degree pulse
|
# No phase shifiting of the receive data but weighting of -1 for the 45 degree pulse, +1 for the 135 degree pulse, -1 for the 225 degree pulse and +1 for the 315 degree pulse
|
||||||
readout_scheme = [[1, 0], [-1, 0], [1, 0], [-1, 0]]
|
readout_scheme = [0, 180, 0, 180]
|
||||||
|
|
||||||
COMPFID.set_rx_readout_scheme("rx", readout_scheme)
|
COMPFID.set_rx_readout_scheme("rx", readout_scheme)
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,8 @@ def create_SEPC() -> QuackSequence:
|
||||||
sepc.add_blank_event("blank", "50u")
|
sepc.add_blank_event("blank", "50u")
|
||||||
|
|
||||||
sepc.add_readout_event("rx", "200u")
|
sepc.add_readout_event("rx", "200u")
|
||||||
# Readout scheme for phase cycling TX pulses have the scheme 0 90 180 270 for the first pulse and 180 always for the second pulse
|
# Readout scheme for phase cycling TX pulses have the scheme 0 90 180 270
|
||||||
readout_scheme = [[1, 0], [1, 90], [1, 180], [1, 270]]
|
readout_scheme = [0, 90, 180, 270]
|
||||||
|
|
||||||
sepc.set_rx_readout_scheme("rx", readout_scheme)
|
sepc.set_rx_readout_scheme("rx", readout_scheme)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue