Skip to content

Commit

Permalink
fix frequency converter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nulinspiratie committed Mar 8, 2024
1 parent de70343 commit 550ef49
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/components/channels/test_in_out_IQ_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def test_empty_in_out_IQ_channel():
d = readout_resonator.to_dict()
assert d == {
"frequency_converter_up": {
"__class__": "quam.components.hardware.FrequencyConverter",
"mixer": {},
"local_oscillator": {"frequency": 5000000000.0},
},
Expand Down Expand Up @@ -127,6 +128,7 @@ def test_readout_resonator_with_readout():
d = readout_resonator.to_dict()
assert d == {
"frequency_converter_up": {
"__class__": "quam.components.hardware.FrequencyConverter",
"mixer": {},
"local_oscillator": {"frequency": 5000000000.0},
},
Expand Down
6 changes: 5 additions & 1 deletion tests/components/test_pulses.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ def test_IQ_channel():
"opx_output_I": 0,
"opx_output_Q": 1,
"intermediate_frequency": 100e6,
"frequency_converter_up": {"mixer": {}, "local_oscillator": {}},
"frequency_converter_up": {
"__class__": "quam.components.hardware.FrequencyConverter",
"mixer": {},
"local_oscillator": {},
},
}


Expand Down
1 change: 1 addition & 0 deletions tests/examples/superconducting_qubits/test_transmon.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def test_transmon_add_pulse():
"opx_output_I": ("con1", 1),
"opx_output_Q": ("con1", 2),
"frequency_converter_up": {
"__class__": "quam.components.hardware.FrequencyConverter",
"mixer": {},
"local_oscillator": {"frequency": 5000000000.0},
},
Expand Down

0 comments on commit 550ef49

Please sign in to comment.