Skip to content

Commit

Permalink
refactor: Convert yaml to json and update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-pasquale authored and alecandido committed Jan 25, 2024
1 parent d869de0 commit 83bdae5
Show file tree
Hide file tree
Showing 16 changed files with 3,381 additions and 2,594 deletions.
109 changes: 63 additions & 46 deletions doc/source/getting-started/experiment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,52 +80,69 @@ For simplicity, the qubit will be controlled by a RFSoC-based system, althought
And the we can define the runcard ``my_platform/parameters.yml``:

.. code-block:: yaml
# my_platform.yml
nqubits: 1
qubits: [0]
topology: []
settings: {nshots: 1024, relaxation_time: 70000, sampling_rate: 9830400000}
native_gates:
single_qubit:
0:
RX: # pi-pulse for X gate
duration: 40
amplitude: 0.5
frequency: 5_500_000_000
shape: Gaussian(3)
type: qd
start: 0
phase: 0
MZ: # measurement pulse
duration: 2000
amplitude: 0.02
frequency: 7_370_000_000
shape: Rectangular()
type: ro
start: 0
phase: 0
two_qubits: {}
characterization:
single_qubit:
0:
readout_frequency: 7370000000
drive_frequency: 5500000000
anharmonicity: 0
Ec: 0
Ej: 0
g: 0
T1: 0.0
T2: 0.0
threshold: 0.0
iq_angle: 0.0
mean_gnd_states: [0.0, 0.0]
mean_exc_states: [0.0, 0.0]
.. code-block:: json
{
"nqubits": 1,
"qubits": [
0
],
"topology": [],
"settings": {
"nshots": 1024,
"relaxation_time": 70000,
"sampling_rate": 9830400000
},
"native_gates": {
"single_qubit": {
"0": {
"RX": {
"duration": 40,
"amplitude": 0.5,
"frequency": 5500000000,
"shape": "Gaussian(3)",
"type": "qd",
"start": 0,
"phase": 0
},
"MZ": {
"duration": 2000,
"amplitude": 0.02,
"frequency": 7370000000,
"shape": "Rectangular()",
"type": "ro",
"start": 0,
"phase": 0
}
}
},
"two_qubits": {}
},
"characterization": {
"single_qubit": {
"0": {
"readout_frequency": 7370000000,
"drive_frequency": 5500000000,
"anharmonicity": 0,
"Ec": 0,
"Ej": 0,
"g": 0,
"T1": 0.0,
"T2": 0.0,
"threshold": 0.0,
"iq_angle": 0.0,
"mean_gnd_states": [
0.0,
0.0
],
"mean_exc_states": [
0.0,
0.0
]
}
}
}
}
Setting up the environment
Expand Down
Loading

0 comments on commit 83bdae5

Please sign in to comment.