Skip to content

Commit

Permalink
rewriting example code
Browse files Browse the repository at this point in the history
  • Loading branch information
nulinspiratie committed May 4, 2024
1 parent 14efc60 commit edfe048
Show file tree
Hide file tree
Showing 13 changed files with 1,309 additions and 899 deletions.
576 changes: 576 additions & 0 deletions docs/demonstration-original.md

Large diffs are not rendered by default.

596 changes: 94 additions & 502 deletions docs/demonstration.md

Large diffs are not rendered by default.

390 changes: 317 additions & 73 deletions docs/examples/QuAM features.ipynb

Large diffs are not rendered by default.

104 changes: 52 additions & 52 deletions docs/examples/output/basic/qua_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@
"offset": 0.0
},
"5": {
"offset": 0
"offset": 0.0
},
"6": {
"1": {
"offset": 0.0
},
"7": {
"2": {
"offset": 0.0
},
"8": {
"offset": 0
"6": {
"offset": 0.0
},
"1": {
"7": {
"offset": 0.0
},
"2": {
"8": {
"offset": 0.0
}
},
Expand All @@ -41,6 +41,8 @@
},
"elements": {
"q0.xy": {
"operations": {},
"intermediate_frequency": 100000000.0,
"mixInputs": {
"I": [
"con1",
Expand All @@ -52,87 +54,87 @@
],
"mixer": "q0.xy.mixer",
"lo_frequency": 6000000000.0
},
"intermediate_frequency": 0.0,
"operations": {}
}
},
"q0.z": {
"operations": {},
"singleInput": {
"port": [
"con1",
5
]
},
"operations": {}
}
},
"q1.xy": {
"IQ0": {
"operations": {},
"intermediate_frequency": 0.0,
"mixInputs": {
"I": [
"con1",
6
1
],
"Q": [
"con1",
7
2
],
"mixer": "q1.xy.mixer",
"mixer": "IQ0.mixer",
"lo_frequency": 6000000000.0
},
"intermediate_frequency": 0.0,
"operations": {}
},
"q1.z": {
"singleInput": {
"port": [
"smearing": 0,
"time_of_flight": 24,
"outputs": {
"out1": [
"con1",
8
1
],
"out2": [
"con1",
2
]
},
"operations": {}
}
},
"IQ0": {
"q1.xy": {
"operations": {},
"intermediate_frequency": 100000000.0,
"mixInputs": {
"I": [
"con1",
1
6
],
"Q": [
"con1",
2
7
],
"mixer": "IQ0.mixer",
"mixer": "q1.xy.mixer",
"lo_frequency": 6000000000.0
},
"intermediate_frequency": 0.0,
}
},
"q1.z": {
"operations": {},
"outputs": {
"out1": [
"con1",
1
],
"out2": [
"singleInput": {
"port": [
"con1",
2
8
]
},
"smearing": 0,
"time_of_flight": 24
}
},
"IQ1": {
"operations": {},
"intermediate_frequency": 0.0,
"mixInputs": {
"I": [
"con1",
1
4
],
"Q": [
"con1",
2
5
],
"mixer": "IQ1.mixer",
"lo_frequency": 6000000000.0
},
"intermediate_frequency": 0.0,
"operations": {},
"smearing": 0,
"time_of_flight": 24,
"outputs": {
"out1": [
"con1",
Expand All @@ -142,9 +144,7 @@
"con1",
2
]
},
"smearing": 0,
"time_of_flight": 24
}
}
},
"pulses": {
Expand Down Expand Up @@ -181,7 +181,7 @@
"mixers": {
"q0.xy.mixer": [
{
"intermediate_frequency": 0.0,
"intermediate_frequency": 100000000.0,
"lo_frequency": 6000000000.0,
"correction": [
1.0,
Expand All @@ -191,7 +191,7 @@
]
}
],
"q1.xy.mixer": [
"IQ0.mixer": [
{
"intermediate_frequency": 0.0,
"lo_frequency": 6000000000.0,
Expand All @@ -203,9 +203,9 @@
]
}
],
"IQ0.mixer": [
"q1.xy.mixer": [
{
"intermediate_frequency": 0.0,
"intermediate_frequency": 100000000.0,
"lo_frequency": 6000000000.0,
"correction": [
1.0,
Expand Down
128 changes: 66 additions & 62 deletions docs/examples/output/basic/state.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"qubits": [
{
"qubits": {
"q0": {
"id": 0,
"xy": {
"opx_output_I": [
Expand All @@ -16,17 +16,46 @@
"frequency": 6000000000.0,
"power": 10
},
"mixer": {}
}
"mixer": {},
"__class__": "quam.components.hardware.FrequencyConverter"
},
"intermediate_frequency": 100000000.0
},
"z": {
"opx_output": [
"con1",
5
]
},
"resonator": {
"id": 0,
"opx_output_I": [
"con1",
1
],
"opx_output_Q": [
"con1",
2
],
"frequency_converter_up": {
"local_oscillator": {
"frequency": 6000000000.0,
"power": 10
},
"mixer": {},
"__class__": "quam.components.hardware.FrequencyConverter"
},
"opx_input_I": [
"con1",
1
],
"opx_input_Q": [
"con1",
2
]
}
},
{
"q1": {
"id": 1,
"xy": {
"opx_output_I": [
Expand All @@ -42,70 +71,45 @@
"frequency": 6000000000.0,
"power": 10
},
"mixer": {}
}
"mixer": {},
"__class__": "quam.components.hardware.FrequencyConverter"
},
"intermediate_frequency": 100000000.0
},
"z": {
"opx_output": [
"con1",
8
]
}
}
],
"resonators": [
{
"id": 0,
"opx_output_I": [
"con1",
1
],
"opx_output_Q": [
"con1",
2
],
"frequency_converter_up": {
"local_oscillator": {
"frequency": 6000000000.0,
"power": 10
},
"mixer": {}
},
"opx_input_I": [
"con1",
1
],
"opx_input_Q": [
"con1",
2
]
},
{
"id": 1,
"opx_output_I": [
"con1",
1
],
"opx_output_Q": [
"con1",
2
],
"frequency_converter_up": {
"local_oscillator": {
"frequency": 6000000000.0,
"power": 10
"resonator": {
"id": 1,
"opx_output_I": [
"con1",
4
],
"opx_output_Q": [
"con1",
5
],
"frequency_converter_up": {
"local_oscillator": {
"frequency": 6000000000.0,
"power": 10
},
"mixer": {},
"__class__": "quam.components.hardware.FrequencyConverter"
},
"mixer": {}
},
"opx_input_I": [
"con1",
1
],
"opx_input_Q": [
"con1",
2
]
"opx_input_I": [
"con1",
1
],
"opx_input_Q": [
"con1",
2
]
}
}
],
"__class__": "quam.components.superconducting_qubits.QuAM"
},
"__class__": "quam.examples.superconducting_qubits.components.QuAM"
}
Loading

0 comments on commit edfe048

Please sign in to comment.