|
49 | 49 | "cell_type": "code", |
50 | 50 | "execution_count": 3, |
51 | 51 | "metadata": {}, |
52 | | - "outputs": [ |
53 | | - { |
54 | | - "name": "stdout", |
55 | | - "output_type": "stream", |
56 | | - "text": [ |
57 | | - "{\n", |
58 | | - " \"shots\": 100,\n", |
59 | | - " \"target\": \"simulator\",\n", |
60 | | - " \"input\": {\n", |
61 | | - " \"format\": \"ionq.circuit.v0\",\n", |
62 | | - " \"gateset\": \"qis\",\n", |
63 | | - " \"qubits\": 2,\n", |
64 | | - " \"circuit\": [\n", |
65 | | - " {\n", |
66 | | - " \"gate\": \"h\",\n", |
67 | | - " \"target\": 0\n", |
68 | | - " },\n", |
69 | | - " {\n", |
70 | | - " \"gate\": \"cnot\",\n", |
71 | | - " \"control\": 0,\n", |
72 | | - " \"target\": 1\n", |
73 | | - " }\n", |
74 | | - " ]\n", |
75 | | - " }\n", |
76 | | - "}\n" |
77 | | - ] |
78 | | - } |
79 | | - ], |
| 52 | + "outputs": [], |
80 | 53 | "source": [ |
81 | | - "with open(\"data.json\", \"r\") as file:\n", |
82 | | - " data = json.load(file)\n", |
83 | | - "\n", |
84 | 54 | "headers = {\n", |
85 | 55 | " \"Authorization\": f\"apiKey {api_key}\",\n", |
86 | 56 | " \"Content-Type\": \"application/json\",\n", |
87 | 57 | " \"User-Agent\": f\"python-requests/{requests.__version__}\"\n", |
88 | 58 | "}\n", |
89 | 59 | "\n", |
90 | | - "print(json.dumps(data, indent=4))" |
| 60 | + "with open(\"data.json\", \"r\") as f:\n", |
| 61 | + " data = json.load(f)\n", |
| 62 | + "\n", |
| 63 | + "# print(json.dumps(data, indent=4))" |
| 64 | + ] |
| 65 | + }, |
| 66 | + { |
| 67 | + "cell_type": "markdown", |
| 68 | + "metadata": {}, |
| 69 | + "source": [ |
| 70 | + "```json\n", |
| 71 | + "{\n", |
| 72 | + " \"shots\": 100,\n", |
| 73 | + " \"target\": \"simulator\",\n", |
| 74 | + " \"input\": {\n", |
| 75 | + " \"format\": \"ionq.circuit.v0\",\n", |
| 76 | + " \"gateset\": \"qis\",\n", |
| 77 | + " \"qubits\": 2,\n", |
| 78 | + " \"circuit\": [\n", |
| 79 | + " {\n", |
| 80 | + " \"gate\": \"h\",\n", |
| 81 | + " \"target\": 0\n", |
| 82 | + " },\n", |
| 83 | + " {\n", |
| 84 | + " \"gate\": \"cnot\",\n", |
| 85 | + " \"control\": 0,\n", |
| 86 | + " \"target\": 1\n", |
| 87 | + " }\n", |
| 88 | + " ]\n", |
| 89 | + " }\n", |
| 90 | + "}\n", |
| 91 | + "```" |
91 | 92 | ] |
92 | 93 | }, |
93 | 94 | { |
|
0 commit comments