{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import keysight.qcs as qcs\n",
"import numpy as np\n",
"import os\n",
"from keysight.qcs.experiments import CalibrationExperiment\n",
"print(qcs.__version__)\n",
"\n",
"\n",
"# import the channel mapper and calibration set\n",
"calibration_set = qcs.load(\"calibration.qcs\")\n",
"chan_mapper = qcs.load(\"channel_mapper.qcs\")\n",
"backend = qcs.HclBackend(chan_mapper, True)\n",
"backend.is_system_ready()"
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {},
"outputs": [],
"source": [
"# initialize the qubits \n",
"qubits = qcs.Qudits(range(1))\n",
"\n",
"# Define the program for the experiment\n",
"program = qcs.Program()\n",
"program.add_measurement(qubits)\n"
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"outputs": [],
"source": [
"# Set parameters of the scan\n",
"start_amplitude = 0\n",
"end_amplitude = 0.5\n",
"n_steps = 51\n",
"n_shots = 100\n",
"\n",
"# Arrange the amplitude scan points into an array\n",
"amplitudes = qcs.Array(\"amplitudes\", value=np.linspace(start_amplitude, end_amplitude, n_steps), dtype=float)"
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {},
"outputs": [],
"source": [
"# Identify the calibration set variable and linker to scan\n",
"cal_variable_name = \"readout_pulse_amplitudes\" \n",
"linker_name = \"measurement\"\n",
"\n",
"# Construct the experiment\n",
"hello_qcs_experiment = CalibrationExperiment(\n",
" backend=backend,\n",
" calibration_set=calibration_set,\n",
" qudits=qubits,\n",
" program=program,\n",
" operation=linker_name,\n",
" fitter=None,\n",
" name=\"hello_qcs\",\n",
" save_path=\"./data\"\n",
")\n",
"\n",
"# Add the scan to the experiment\n",
"hello_qcs_experiment.configure_repetitions(\n",
" n_shots, False, **{cal_variable_name: amplitudes}\n",
" )\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": 21,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "1d6afe3371db4519b2fdf5ae156daffb",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
" 0%| | 0/51 [00:00, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"hovertemplate": "IQ Value: %{y}
readout_pulse_amplitudes: %{text}
",
"legendgroup": "acquire_channels, labels: (0,)",
"legendgrouptitle": {
"text": "acquire_channels, labels: (0,)"
},
"line": {
"color": "#ff005c"
},
"marker": {
"color": "#ff005c",
"symbol": "circle"
},
"name": "I",
"text": [
"0",
"0.01",
"0.02",
"0.03",
"0.04",
"0.05",
"0.06",
"0.07",
"0.08",
"0.09",
"0.1",
"0.11",
"0.12",
"0.13",
"0.14",
"0.15",
"0.16",
"0.17",
"0.18",
"0.19",
"0.2",
"0.21",
"0.22",
"0.23",
"0.24",
"0.25",
"0.26",
"0.27",
"0.28",
"0.29",
"0.3",
"0.31",
"0.32",
"0.33",
"0.34",
"0.35",
"0.36",
"0.37",
"0.38",
"0.39",
"0.4",
"0.41",
"0.42",
"0.43",
"0.44",
"0.45",
"0.46",
"0.47",
"0.48",
"0.49",
"0.5"
],
"type": "scatter",
"visible": "legendonly",
"x": [
"0",
"0.01",
"0.02",
"0.03",
"0.04",
"0.05",
"0.06",
"0.07",
"0.08",
"0.09",
"0.1",
"0.11",
"0.12",
"0.13",
"0.14",
"0.15",
"0.16",
"0.17",
"0.18",
"0.19",
"0.2",
"0.21",
"0.22",
"0.23",
"0.24",
"0.25",
"0.26",
"0.27",
"0.28",
"0.29",
"0.3",
"0.31",
"0.32",
"0.33",
"0.34",
"0.35",
"0.36",
"0.37",
"0.38",
"0.39",
"0.4",
"0.41",
"0.42",
"0.43",
"0.44",
"0.45",
"0.46",
"0.47",
"0.48",
"0.49",
"0.5"
],
"xaxis": "x",
"y": [
-0.0000050645469277554865,
0.00045022379159334494,
0.0009099731800298372,
0.0013532747267809243,
0.001802376818593956,
0.002260231494632521,
0.00271826266001959,
0.003158870732549275,
0.003617972099304936,
0.004063249361164054,
0.004517445504203224,
0.004954707789296364,
0.0054027681111556095,
0.005861493968659133,
0.006308050107742673,
0.006767357468145221,
0.007214047181234164,
0.007669249152627273,
0.008128986739344413,
0.008570889245910394,
0.00903724920650987,
0.009489526497270617,
0.009948854242461138,
0.010405015908214353,
0.010849040578496697,
0.011320725260291483,
0.011775692270181111,
0.012242136452141424,
0.012727966031022433,
0.013220538146746464,
0.013670054908062213,
0.014166620832903619,
0.014618863791389885,
0.01511362780826282,
0.015572666947770984,
0.016056640974504648,
0.01657244799342557,
0.01707735773384947,
0.017572264980680003,
0.0180534291253241,
0.018568448111257324,
0.019074607224607264,
0.019597809630028138,
0.020121772709905485,
0.020667682159803108,
0.021189235543165312,
0.021751740356240248,
0.022267795211267583,
0.022802215150933378,
0.0233544669520996,
0.023887999080604985
],
"yaxis": "y"
},
{
"hovertemplate": "IQ Value: %{y}
readout_pulse_amplitudes: %{text}
",
"legendgroup": "acquire_channels, labels: (0,)",
"legendgrouptitle": {
"text": "acquire_channels, labels: (0,)"
},
"line": {
"color": "#00d539"
},
"marker": {
"color": "#00d539",
"symbol": "square"
},
"name": "Q",
"text": [
"0",
"0.01",
"0.02",
"0.03",
"0.04",
"0.05",
"0.06",
"0.07",
"0.08",
"0.09",
"0.1",
"0.11",
"0.12",
"0.13",
"0.14",
"0.15",
"0.16",
"0.17",
"0.18",
"0.19",
"0.2",
"0.21",
"0.22",
"0.23",
"0.24",
"0.25",
"0.26",
"0.27",
"0.28",
"0.29",
"0.3",
"0.31",
"0.32",
"0.33",
"0.34",
"0.35",
"0.36",
"0.37",
"0.38",
"0.39",
"0.4",
"0.41",
"0.42",
"0.43",
"0.44",
"0.45",
"0.46",
"0.47",
"0.48",
"0.49",
"0.5"
],
"type": "scatter",
"visible": "legendonly",
"x": [
"0",
"0.01",
"0.02",
"0.03",
"0.04",
"0.05",
"0.06",
"0.07",
"0.08",
"0.09",
"0.1",
"0.11",
"0.12",
"0.13",
"0.14",
"0.15",
"0.16",
"0.17",
"0.18",
"0.19",
"0.2",
"0.21",
"0.22",
"0.23",
"0.24",
"0.25",
"0.26",
"0.27",
"0.28",
"0.29",
"0.3",
"0.31",
"0.32",
"0.33",
"0.34",
"0.35",
"0.36",
"0.37",
"0.38",
"0.39",
"0.4",
"0.41",
"0.42",
"0.43",
"0.44",
"0.45",
"0.46",
"0.47",
"0.48",
"0.49",
"0.5"
],
"xaxis": "x",
"y": [
0.000003138720906079584,
0.004479465962000262,
0.008950230838186713,
0.013413484456446838,
0.01789974981811973,
0.02236917358983426,
0.026845253531263824,
0.031317611103121125,
0.03576544953013922,
0.040205586798837775,
0.04464722985963739,
0.049112709174879116,
0.053582862507426374,
0.05795629753122597,
0.062393860415780225,
0.06682436050774357,
0.07115996136506496,
0.07561615916447742,
0.07994829031630907,
0.08432143995307705,
0.0887136987192445,
0.09304517648497744,
0.09734917984805684,
0.10170039759873284,
0.10595942514580017,
0.11023286420152274,
0.11448553169474245,
0.1187184870979921,
0.12292002042346468,
0.1271617831280023,
0.1313209820768307,
0.13548085640587118,
0.1396030419441582,
0.14375350869354905,
0.14782377095821767,
0.15192099854228225,
0.15592413799168953,
0.1599972718292534,
0.16396651781356275,
0.16793887891533948,
0.17186489788386816,
0.1757902264518147,
0.17965271140064887,
0.1835515762222719,
0.1874255222499231,
0.1912269322282225,
0.1950655986251936,
0.1988553704988857,
0.20267387955920207,
0.20645362587230387,
0.2103021295387974
],
"yaxis": "y"
},
{
"hovertemplate": "IQ Value: %{y}
readout_pulse_amplitudes: %{text}
",
"legendgroup": "acquire_channels, labels: (0,)",
"legendgrouptitle": {
"text": "acquire_channels, labels: (0,)"
},
"line": {
"color": "#ad6aff"
},
"marker": {
"color": "#ad6aff",
"symbol": "diamond"
},
"name": "Magnitude",
"text": [
"0",
"0.01",
"0.02",
"0.03",
"0.04",
"0.05",
"0.06",
"0.07",
"0.08",
"0.09",
"0.1",
"0.11",
"0.12",
"0.13",
"0.14",
"0.15",
"0.16",
"0.17",
"0.18",
"0.19",
"0.2",
"0.21",
"0.22",
"0.23",
"0.24",
"0.25",
"0.26",
"0.27",
"0.28",
"0.29",
"0.3",
"0.31",
"0.32",
"0.33",
"0.34",
"0.35",
"0.36",
"0.37",
"0.38",
"0.39",
"0.4",
"0.41",
"0.42",
"0.43",
"0.44",
"0.45",
"0.46",
"0.47",
"0.48",
"0.49",
"0.5"
],
"type": "scatter",
"visible": true,
"x": [
"0",
"0.01",
"0.02",
"0.03",
"0.04",
"0.05",
"0.06",
"0.07",
"0.08",
"0.09",
"0.1",
"0.11",
"0.12",
"0.13",
"0.14",
"0.15",
"0.16",
"0.17",
"0.18",
"0.19",
"0.2",
"0.21",
"0.22",
"0.23",
"0.24",
"0.25",
"0.26",
"0.27",
"0.28",
"0.29",
"0.3",
"0.31",
"0.32",
"0.33",
"0.34",
"0.35",
"0.36",
"0.37",
"0.38",
"0.39",
"0.4",
"0.41",
"0.42",
"0.43",
"0.44",
"0.45",
"0.46",
"0.47",
"0.48",
"0.49",
"0.5"
],
"xaxis": "x",
"y": [
0.000005958288723257591,
0.004502034736342626,
0.008996370559575792,
0.013481576975616945,
0.017990264193376432,
0.022483073043991726,
0.026982523770890846,
0.031476518700632894,
0.035947977720649116,
0.040410384868371126,
0.04487518744275887,
0.04936200291493012,
0.05385455466116751,
0.05825194876630838,
0.06271192321836142,
0.06716615430684221,
0.07152469907808498,
0.07600408482017697,
0.08036049744687546,
0.08475591647918179,
0.08917282216947857,
0.09352783532330361,
0.09785623392419643,
0.1022312830193896,
0.10651338628877732,
0.11081264896432337,
0.11508954729196688,
0.11934801667287548,
0.12357723309813921,
0.12784718110769072,
0.1320305674259288,
0.1362195125460796,
0.14036637951665493,
0.14454581629100502,
0.14864176807403023,
0.1527671611226322,
0.1568023687351254,
0.1609060693074499,
0.16490543793476498,
0.16890646332963155,
0.17286506411040053,
0.1768220697671909,
0.1807184850974013,
0.18465120327436152,
0.18856160658128435,
0.19239730588633755,
0.19627461877565938,
0.20009825856268723,
0.20395254955838968,
0.20777037989674546,
0.21165448775924434
],
"yaxis": "y"
},
{
"hovertemplate": "IQ Value: %{y}
readout_pulse_amplitudes: %{text}
",
"legendgroup": "acquire_channels, labels: (0,)",
"legendgrouptitle": {
"text": "acquire_channels, labels: (0,)"
},
"line": {
"color": "#ff9000"
},
"marker": {
"color": "#ff9000",
"symbol": "triangle-down"
},
"name": "Phase",
"text": [
"0",
"0.01",
"0.02",
"0.03",
"0.04",
"0.05",
"0.06",
"0.07",
"0.08",
"0.09",
"0.1",
"0.11",
"0.12",
"0.13",
"0.14",
"0.15",
"0.16",
"0.17",
"0.18",
"0.19",
"0.2",
"0.21",
"0.22",
"0.23",
"0.24",
"0.25",
"0.26",
"0.27",
"0.28",
"0.29",
"0.3",
"0.31",
"0.32",
"0.33",
"0.34",
"0.35",
"0.36",
"0.37",
"0.38",
"0.39",
"0.4",
"0.41",
"0.42",
"0.43",
"0.44",
"0.45",
"0.46",
"0.47",
"0.48",
"0.49",
"0.5"
],
"type": "scatter",
"visible": "legendonly",
"x": [
"0",
"0.01",
"0.02",
"0.03",
"0.04",
"0.05",
"0.06",
"0.07",
"0.08",
"0.09",
"0.1",
"0.11",
"0.12",
"0.13",
"0.14",
"0.15",
"0.16",
"0.17",
"0.18",
"0.19",
"0.2",
"0.21",
"0.22",
"0.23",
"0.24",
"0.25",
"0.26",
"0.27",
"0.28",
"0.29",
"0.3",
"0.31",
"0.32",
"0.33",
"0.34",
"0.35",
"0.36",
"0.37",
"0.38",
"0.39",
"0.4",
"0.41",
"0.42",
"0.43",
"0.44",
"0.45",
"0.46",
"0.47",
"0.48",
"0.49",
"0.5"
],
"xaxis": "x",
"y": [
2.58678210264874,
1.4706243698349575,
1.469474128753582,
1.4702474290011693,
1.4704417316371867,
1.470095856451281,
1.469883539989183,
1.4702706835451003,
1.4699809739080123,
1.4700764884882378,
1.4699586345437103,
1.4702520755466693,
1.4703058104769537,
1.4700026070883576,
1.4700381954698103,
1.469869600327462,
1.469763607519022,
1.469718551246759,
1.4694665102472164,
1.4694987998711395,
1.4692767044988808,
1.4691593746710305,
1.4689522921940597,
1.468840603229816,
1.4687632558039103,
1.4684568324604277,
1.4682993027162305,
1.4680404788039625,
1.4676173086612925,
1.4672022214580347,
1.4670733980821662,
1.4666094698090453,
1.466459222545514,
1.4660454367672164,
1.4658372941360618,
1.4654965222469571,
1.4649085287315444,
1.4644635974494833,
1.4640339806088662,
1.4637075800920631,
1.4631728313956436,
1.4627114180732252,
1.4621387853858578,
1.4616077024086966,
1.4609686134735012,
1.4604397615821576,
1.459745222792398,
1.4592810399014202,
1.458760525027251,
1.4581530855811673,
1.457692149921298
],
"yaxis": "y"
}
],
"layout": {
"annotations": [
{
"font": {
"size": 16
},
"showarrow": false,
"text": "acquire_channels, labels: (0,)",
"x": 0.5,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
}
],
"coloraxis": {
"colorscale": [
[
0,
"#440154"
],
[
0.1111111111111111,
"#482878"
],
[
0.2222222222222222,
"#3e4989"
],
[
0.3333333333333333,
"#31688e"
],
[
0.4444444444444444,
"#26828e"
],
[
0.5555555555555556,
"#1f9e89"
],
[
0.6666666666666666,
"#35b779"
],
[
0.7777777777777778,
"#6ece58"
],
[
0.8888888888888888,
"#b5de2b"
],
[
1,
"#fde725"
]
]
},
"height": 500,
"hovermode": "closest",
"legend": {
"groupclick": "toggleitem"
},
"template": {
"data": {
"bar": [
{
"marker": {
"color": "#00b287",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": ""
}
},
"type": "bar"
},
{
"marker": {
"color": "#c97a88",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": ""
}
},
"type": "bar"
},
{
"marker": {
"color": "#ad6aff",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": ""
}
},
"type": "bar"
},
{
"marker": {
"color": "#ff005c",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": ""
}
},
"type": "bar"
},
{
"marker": {
"color": "#ff9000",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": ""
}
},
"type": "bar"
},
{
"marker": {
"color": "#00d539",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": ""
}
},
"type": "bar"
},
{
"marker": {
"color": "#00b287",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "/"
}
},
"type": "bar"
},
{
"marker": {
"color": "#c97a88",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "/"
}
},
"type": "bar"
},
{
"marker": {
"color": "#ad6aff",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "/"
}
},
"type": "bar"
},
{
"marker": {
"color": "#ff005c",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "/"
}
},
"type": "bar"
},
{
"marker": {
"color": "#ff9000",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "/"
}
},
"type": "bar"
},
{
"marker": {
"color": "#00d539",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "/"
}
},
"type": "bar"
},
{
"marker": {
"color": "#00b287",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "\\"
}
},
"type": "bar"
},
{
"marker": {
"color": "#c97a88",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "\\"
}
},
"type": "bar"
},
{
"marker": {
"color": "#ad6aff",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "\\"
}
},
"type": "bar"
},
{
"marker": {
"color": "#ff005c",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "\\"
}
},
"type": "bar"
},
{
"marker": {
"color": "#ff9000",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "\\"
}
},
"type": "bar"
},
{
"marker": {
"color": "#00d539",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "\\"
}
},
"type": "bar"
},
{
"marker": {
"color": "#00b287",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "x"
}
},
"type": "bar"
},
{
"marker": {
"color": "#c97a88",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "x"
}
},
"type": "bar"
},
{
"marker": {
"color": "#ad6aff",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "x"
}
},
"type": "bar"
},
{
"marker": {
"color": "#ff005c",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "x"
}
},
"type": "bar"
},
{
"marker": {
"color": "#ff9000",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "x"
}
},
"type": "bar"
},
{
"marker": {
"color": "#00d539",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "x"
}
},
"type": "bar"
},
{
"marker": {
"color": "#00b287",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "-"
}
},
"type": "bar"
},
{
"marker": {
"color": "#c97a88",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "-"
}
},
"type": "bar"
},
{
"marker": {
"color": "#ad6aff",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "-"
}
},
"type": "bar"
},
{
"marker": {
"color": "#ff005c",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "-"
}
},
"type": "bar"
},
{
"marker": {
"color": "#ff9000",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "-"
}
},
"type": "bar"
},
{
"marker": {
"color": "#00d539",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "-"
}
},
"type": "bar"
},
{
"marker": {
"color": "#00b287",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "|"
}
},
"type": "bar"
},
{
"marker": {
"color": "#c97a88",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "|"
}
},
"type": "bar"
},
{
"marker": {
"color": "#ad6aff",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "|"
}
},
"type": "bar"
},
{
"marker": {
"color": "#ff005c",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "|"
}
},
"type": "bar"
},
{
"marker": {
"color": "#ff9000",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "|"
}
},
"type": "bar"
},
{
"marker": {
"color": "#00d539",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "|"
}
},
"type": "bar"
},
{
"marker": {
"color": "#00b287",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "+"
}
},
"type": "bar"
},
{
"marker": {
"color": "#c97a88",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "+"
}
},
"type": "bar"
},
{
"marker": {
"color": "#ad6aff",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "+"
}
},
"type": "bar"
},
{
"marker": {
"color": "#ff005c",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "+"
}
},
"type": "bar"
},
{
"marker": {
"color": "#ff9000",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "+"
}
},
"type": "bar"
},
{
"marker": {
"color": "#00d539",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "+"
}
},
"type": "bar"
},
{
"marker": {
"color": "#00b287",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "."
}
},
"type": "bar"
},
{
"marker": {
"color": "#c97a88",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "."
}
},
"type": "bar"
},
{
"marker": {
"color": "#ad6aff",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "."
}
},
"type": "bar"
},
{
"marker": {
"color": "#ff005c",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "."
}
},
"type": "bar"
},
{
"marker": {
"color": "#ff9000",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "."
}
},
"type": "bar"
},
{
"marker": {
"color": "#00d539",
"line": {
"color": "white",
"width": 1.5
},
"opacity": 0.8,
"pattern": {
"shape": "."
}
},
"type": "bar"
}
],
"scatter": [
{
"line": {
"color": "#ff005c"
},
"marker": {
"color": "#ff005c",
"opacity": 0.5,
"size": 8,
"symbol": "circle"
},
"type": "scatter"
},
{
"line": {
"color": "#00d539"
},
"marker": {
"color": "#00d539",
"opacity": 0.5,
"size": 8,
"symbol": "square"
},
"type": "scatter"
},
{
"line": {
"color": "#ad6aff"
},
"marker": {
"color": "#ad6aff",
"opacity": 0.5,
"size": 8,
"symbol": "diamond"
},
"type": "scatter"
},
{
"line": {
"color": "#ff9000"
},
"marker": {
"color": "#ff9000",
"opacity": 0.5,
"size": 8,
"symbol": "triangle-down"
},
"type": "scatter"
},
{
"line": {
"color": "#00b287"
},
"marker": {
"color": "#00b287",
"opacity": 0.5,
"size": 8,
"symbol": "cross"
},
"type": "scatter"
},
{
"line": {
"color": "#c97a88"
},
"marker": {
"color": "#c97a88",
"opacity": 0.5,
"size": 8,
"symbol": "hexagram"
},
"type": "scatter"
},
{
"line": {
"color": "#ff005c"
},
"marker": {
"color": "#ff005c",
"opacity": 0.5,
"size": 8,
"symbol": "square"
},
"type": "scatter"
},
{
"line": {
"color": "#00d539"
},
"marker": {
"color": "#00d539",
"opacity": 0.5,
"size": 8,
"symbol": "diamond"
},
"type": "scatter"
},
{
"line": {
"color": "#ad6aff"
},
"marker": {
"color": "#ad6aff",
"opacity": 0.5,
"size": 8,
"symbol": "triangle-down"
},
"type": "scatter"
},
{
"line": {
"color": "#ff9000"
},
"marker": {
"color": "#ff9000",
"opacity": 0.5,
"size": 8,
"symbol": "cross"
},
"type": "scatter"
},
{
"line": {
"color": "#00b287"
},
"marker": {
"color": "#00b287",
"opacity": 0.5,
"size": 8,
"symbol": "hexagram"
},
"type": "scatter"
},
{
"line": {
"color": "#c97a88"
},
"marker": {
"color": "#c97a88",
"opacity": 0.5,
"size": 8,
"symbol": "circle"
},
"type": "scatter"
},
{
"line": {
"color": "#ff005c"
},
"marker": {
"color": "#ff005c",
"opacity": 0.5,
"size": 8,
"symbol": "diamond"
},
"type": "scatter"
},
{
"line": {
"color": "#00d539"
},
"marker": {
"color": "#00d539",
"opacity": 0.5,
"size": 8,
"symbol": "triangle-down"
},
"type": "scatter"
},
{
"line": {
"color": "#ad6aff"
},
"marker": {
"color": "#ad6aff",
"opacity": 0.5,
"size": 8,
"symbol": "cross"
},
"type": "scatter"
},
{
"line": {
"color": "#ff9000"
},
"marker": {
"color": "#ff9000",
"opacity": 0.5,
"size": 8,
"symbol": "hexagram"
},
"type": "scatter"
},
{
"line": {
"color": "#00b287"
},
"marker": {
"color": "#00b287",
"opacity": 0.5,
"size": 8,
"symbol": "circle"
},
"type": "scatter"
},
{
"line": {
"color": "#c97a88"
},
"marker": {
"color": "#c97a88",
"opacity": 0.5,
"size": 8,
"symbol": "square"
},
"type": "scatter"
},
{
"line": {
"color": "#ff005c"
},
"marker": {
"color": "#ff005c",
"opacity": 0.5,
"size": 8,
"symbol": "triangle-down"
},
"type": "scatter"
},
{
"line": {
"color": "#00d539"
},
"marker": {
"color": "#00d539",
"opacity": 0.5,
"size": 8,
"symbol": "cross"
},
"type": "scatter"
},
{
"line": {
"color": "#ad6aff"
},
"marker": {
"color": "#ad6aff",
"opacity": 0.5,
"size": 8,
"symbol": "hexagram"
},
"type": "scatter"
},
{
"line": {
"color": "#ff9000"
},
"marker": {
"color": "#ff9000",
"opacity": 0.5,
"size": 8,
"symbol": "circle"
},
"type": "scatter"
},
{
"line": {
"color": "#00b287"
},
"marker": {
"color": "#00b287",
"opacity": 0.5,
"size": 8,
"symbol": "square"
},
"type": "scatter"
},
{
"line": {
"color": "#c97a88"
},
"marker": {
"color": "#c97a88",
"opacity": 0.5,
"size": 8,
"symbol": "diamond"
},
"type": "scatter"
},
{
"line": {
"color": "#ff005c"
},
"marker": {
"color": "#ff005c",
"opacity": 0.5,
"size": 8,
"symbol": "cross"
},
"type": "scatter"
},
{
"line": {
"color": "#00d539"
},
"marker": {
"color": "#00d539",
"opacity": 0.5,
"size": 8,
"symbol": "hexagram"
},
"type": "scatter"
},
{
"line": {
"color": "#ad6aff"
},
"marker": {
"color": "#ad6aff",
"opacity": 0.5,
"size": 8,
"symbol": "circle"
},
"type": "scatter"
},
{
"line": {
"color": "#ff9000"
},
"marker": {
"color": "#ff9000",
"opacity": 0.5,
"size": 8,
"symbol": "square"
},
"type": "scatter"
},
{
"line": {
"color": "#00b287"
},
"marker": {
"color": "#00b287",
"opacity": 0.5,
"size": 8,
"symbol": "diamond"
},
"type": "scatter"
},
{
"line": {
"color": "#c97a88"
},
"marker": {
"color": "#c97a88",
"opacity": 0.5,
"size": 8,
"symbol": "triangle-down"
},
"type": "scatter"
},
{
"line": {
"color": "#ff005c"
},
"marker": {
"color": "#ff005c",
"opacity": 0.5,
"size": 8,
"symbol": "hexagram"
},
"type": "scatter"
},
{
"line": {
"color": "#00d539"
},
"marker": {
"color": "#00d539",
"opacity": 0.5,
"size": 8,
"symbol": "circle"
},
"type": "scatter"
},
{
"line": {
"color": "#ad6aff"
},
"marker": {
"color": "#ad6aff",
"opacity": 0.5,
"size": 8,
"symbol": "square"
},
"type": "scatter"
},
{
"line": {
"color": "#ff9000"
},
"marker": {
"color": "#ff9000",
"opacity": 0.5,
"size": 8,
"symbol": "diamond"
},
"type": "scatter"
},
{
"line": {
"color": "#00b287"
},
"marker": {
"color": "#00b287",
"opacity": 0.5,
"size": 8,
"symbol": "triangle-down"
},
"type": "scatter"
},
{
"line": {
"color": "#c97a88"
},
"marker": {
"color": "#c97a88",
"opacity": 0.5,
"size": 8,
"symbol": "cross"
},
"type": "scatter"
}
],
"violin": [
{
"box": {
"visible": true
},
"line": {
"color": "#ff005c"
},
"marker": {
"color": "#ff005c",
"opacity": 0.5,
"size": 8,
"symbol": "circle"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#00d539"
},
"marker": {
"color": "#00d539",
"opacity": 0.5,
"size": 8,
"symbol": "square"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#ad6aff"
},
"marker": {
"color": "#ad6aff",
"opacity": 0.5,
"size": 8,
"symbol": "diamond"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#ff9000"
},
"marker": {
"color": "#ff9000",
"opacity": 0.5,
"size": 8,
"symbol": "triangle-down"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#00b287"
},
"marker": {
"color": "#00b287",
"opacity": 0.5,
"size": 8,
"symbol": "cross"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#c97a88"
},
"marker": {
"color": "#c97a88",
"opacity": 0.5,
"size": 8,
"symbol": "hexagram"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#ff005c"
},
"marker": {
"color": "#ff005c",
"opacity": 0.5,
"size": 8,
"symbol": "square"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#00d539"
},
"marker": {
"color": "#00d539",
"opacity": 0.5,
"size": 8,
"symbol": "diamond"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#ad6aff"
},
"marker": {
"color": "#ad6aff",
"opacity": 0.5,
"size": 8,
"symbol": "triangle-down"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#ff9000"
},
"marker": {
"color": "#ff9000",
"opacity": 0.5,
"size": 8,
"symbol": "cross"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#00b287"
},
"marker": {
"color": "#00b287",
"opacity": 0.5,
"size": 8,
"symbol": "hexagram"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#c97a88"
},
"marker": {
"color": "#c97a88",
"opacity": 0.5,
"size": 8,
"symbol": "circle"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#ff005c"
},
"marker": {
"color": "#ff005c",
"opacity": 0.5,
"size": 8,
"symbol": "diamond"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#00d539"
},
"marker": {
"color": "#00d539",
"opacity": 0.5,
"size": 8,
"symbol": "triangle-down"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#ad6aff"
},
"marker": {
"color": "#ad6aff",
"opacity": 0.5,
"size": 8,
"symbol": "cross"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#ff9000"
},
"marker": {
"color": "#ff9000",
"opacity": 0.5,
"size": 8,
"symbol": "hexagram"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#00b287"
},
"marker": {
"color": "#00b287",
"opacity": 0.5,
"size": 8,
"symbol": "circle"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#c97a88"
},
"marker": {
"color": "#c97a88",
"opacity": 0.5,
"size": 8,
"symbol": "square"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#ff005c"
},
"marker": {
"color": "#ff005c",
"opacity": 0.5,
"size": 8,
"symbol": "triangle-down"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#00d539"
},
"marker": {
"color": "#00d539",
"opacity": 0.5,
"size": 8,
"symbol": "cross"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#ad6aff"
},
"marker": {
"color": "#ad6aff",
"opacity": 0.5,
"size": 8,
"symbol": "hexagram"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#ff9000"
},
"marker": {
"color": "#ff9000",
"opacity": 0.5,
"size": 8,
"symbol": "circle"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#00b287"
},
"marker": {
"color": "#00b287",
"opacity": 0.5,
"size": 8,
"symbol": "square"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#c97a88"
},
"marker": {
"color": "#c97a88",
"opacity": 0.5,
"size": 8,
"symbol": "diamond"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#ff005c"
},
"marker": {
"color": "#ff005c",
"opacity": 0.5,
"size": 8,
"symbol": "cross"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#00d539"
},
"marker": {
"color": "#00d539",
"opacity": 0.5,
"size": 8,
"symbol": "hexagram"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#ad6aff"
},
"marker": {
"color": "#ad6aff",
"opacity": 0.5,
"size": 8,
"symbol": "circle"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#ff9000"
},
"marker": {
"color": "#ff9000",
"opacity": 0.5,
"size": 8,
"symbol": "square"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#00b287"
},
"marker": {
"color": "#00b287",
"opacity": 0.5,
"size": 8,
"symbol": "diamond"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#c97a88"
},
"marker": {
"color": "#c97a88",
"opacity": 0.5,
"size": 8,
"symbol": "triangle-down"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#ff005c"
},
"marker": {
"color": "#ff005c",
"opacity": 0.5,
"size": 8,
"symbol": "hexagram"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#00d539"
},
"marker": {
"color": "#00d539",
"opacity": 0.5,
"size": 8,
"symbol": "circle"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#ad6aff"
},
"marker": {
"color": "#ad6aff",
"opacity": 0.5,
"size": 8,
"symbol": "square"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#ff9000"
},
"marker": {
"color": "#ff9000",
"opacity": 0.5,
"size": 8,
"symbol": "diamond"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#00b287"
},
"marker": {
"color": "#00b287",
"opacity": 0.5,
"size": 8,
"symbol": "triangle-down"
},
"meanline": {
"visible": true
},
"type": "violin"
},
{
"box": {
"visible": true
},
"line": {
"color": "#c97a88"
},
"marker": {
"color": "#c97a88",
"opacity": 0.5,
"size": 8,
"symbol": "cross"
},
"meanline": {
"visible": true
},
"type": "violin"
}
]
},
"layout": {
"annotationdefaults": {
"font": {
"size": 12
}
},
"autotypenumbers": "strict",
"font": {
"color": "white"
},
"hoverlabel": {
"font": {
"family": "Rockwell",
"size": 14
}
},
"hovermode": "x unified",
"legend": {
"bgcolor": "black",
"bordercolor": "white",
"borderwidth": 1,
"font": {
"family": "Rockwell"
}
},
"paper_bgcolor": "black",
"plot_bgcolor": "black",
"xaxis": {
"gridcolor": "#555555",
"linecolor": "white",
"linewidth": 1,
"mirror": true,
"showline": true
},
"yaxis": {
"gridcolor": "#555555",
"linecolor": "white",
"linewidth": 1,
"mirror": true,
"showline": true
}
}
},
"width": 900,
"xaxis": {
"anchor": "y",
"automargin": true,
"domain": [
0,
1
],
"nticks": 12,
"showticklabels": true,
"tickangle": 0,
"title": {
"text": "readout_pulse_amplitudes"
}
},
"yaxis": {
"anchor": "x",
"automargin": true,
"domain": [
0,
1
],
"nticks": 12,
"title": {
"text": "I/Q Data"
}
}
}
}
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"hello_qcs_experiment.execute()\n",
"\n",
"hello_qcs_experiment.plot_iq()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.0"
}
},
"nbformat": 4,
"nbformat_minor": 2
}