Skip to content

Commit 08239c7

Browse files
committed
fix the generator in remaining tests
Signed-off-by: Alexander Simm <[email protected]>
1 parent 159254c commit 08239c7

File tree

4 files changed

+65
-11
lines changed

4 files changed

+65
-11
lines changed

examples/generator.cfg

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,21 @@
4747
}
4848
},
4949
"Chains": {
50-
"d1": ["LO", "AWG", "DigitalToAnalog", "Response", "Mixer", "VoltsToHertz"],
51-
"d2": ["LO", "AWG", "DigitalToAnalog", "Response", "Mixer", "VoltsToHertz"],
52-
}
50+
"d1": {
51+
"LO": [],
52+
"AWG": [],
53+
"DigitalToAnalog": ["AWG"],
54+
"Response": ["DigitalToAnalog"],
55+
"Mixer": ["LO", "Response"],
56+
"VoltsToHertz": ["Mixer"]
57+
},
58+
"d2": {
59+
"LO": [],
60+
"AWG": [],
61+
"DigitalToAnalog": ["AWG"],
62+
"Response": ["DigitalToAnalog"],
63+
"Mixer": ["LO", "Response"],
64+
"VoltsToHertz": ["Mixer"]
65+
},
66+
}
5367
}

test/generator.cfg

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,21 @@
4747
}
4848
},
4949
"Chains": {
50-
"d1": ["LO", "AWG", "DigitalToAnalog", "Response", "Mixer", "VoltsToHertz"],
51-
"d2": ["LO", "AWG", "DigitalToAnalog", "Response", "Mixer", "VoltsToHertz"],
52-
}
50+
"d1": {
51+
"LO": [],
52+
"AWG": [],
53+
"DigitalToAnalog": ["AWG"],
54+
"Response": ["DigitalToAnalog"],
55+
"Mixer": ["LO", "Response"],
56+
"VoltsToHertz": ["Mixer"]
57+
},
58+
"d2": {
59+
"LO": [],
60+
"AWG": [],
61+
"DigitalToAnalog": ["AWG"],
62+
"Response": ["DigitalToAnalog"],
63+
"Mixer": ["LO", "Response"],
64+
"VoltsToHertz": ["Mixer"]
65+
},
66+
}
5367
}

test/generator2.cfg

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,21 @@
4747
}
4848
},
4949
"Chains": {
50-
"d1": ["LO", "AWG", "DigitalToAnalog", "Response", "Mixer", "VoltsToHertz"],
51-
"d2": ["LO", "AWG", "DigitalToAnalog", "Response", "Mixer", "VoltsToHertz"],
52-
}
50+
"d1": {
51+
"LO": [],
52+
"AWG": [],
53+
"DigitalToAnalog": ["AWG"],
54+
"Response": ["DigitalToAnalog"],
55+
"Mixer": ["LO", "Response"],
56+
"VoltsToHertz": ["Mixer"]
57+
},
58+
"d2": {
59+
"LO": [],
60+
"AWG": [],
61+
"DigitalToAnalog": ["AWG"],
62+
"Response": ["DigitalToAnalog"],
63+
"Mixer": ["LO", "Response"],
64+
"VoltsToHertz": ["Mixer"]
65+
},
66+
}
5367
}

test/test_transmon_expanded.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,20 @@
9292
generator = Generator(
9393
devices=device_dict,
9494
chains={
95-
"Qubit1": ["lo", "awg", "dac", "resp", "mixer"],
96-
"Qubit2": ["lo", "awg", "dac", "resp", "mixer"],
95+
"Qubit1": {
96+
"lo": [],
97+
"awg": [],
98+
"dac": ["awg"],
99+
"resp": ["dac"],
100+
"mixer": ["lo", "awg"],
101+
},
102+
"Qubit2": {
103+
"lo": [],
104+
"awg": [],
105+
"dac": ["awg"],
106+
"resp": ["dac"],
107+
"mixer": ["lo", "awg"],
108+
},
97109
},
98110
)
99111

0 commit comments

Comments
 (0)