Skip to content

Commit 73deeac

Browse files
AnnePicusclassiqdor
authored andcommitted
Minor English fixes to autocallable notebooks
1 parent b4aa88b commit 73deeac

File tree

2 files changed

+70
-29
lines changed

2 files changed

+70
-29
lines changed

applications/finance/autocallable_options/partial_exponential_state_preparation.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"id": "d0de1527-21cb-4a77-a1de-83e85569fc2f",
66
"metadata": {},
77
"source": [
8-
"# Prepare partial exponential state"
8+
"# Prepare Partial Exponential State"
99
]
1010
},
1111
{
@@ -18,7 +18,7 @@
1818
"$$ |\\psi\\rangle = \\sum_{x_0}^{x_1}\\sqrt{\\frac{e^{-ar}}{Z}}|r\\rangle $$\n",
1919
"$$Z = \\sum_{x_0}^{x_1}\\sqrt{e^{-ar}}$$\n",
2020
"\n",
21-
"The methodology is to load the state on the full range of states, then use exact amplitude amplification to leave only the wanted part."
21+
"The methodology is to load the state on the full range of states, then use exact amplitude amplification to leave only the wanted part:"
2222
]
2323
},
2424
{
@@ -39,7 +39,7 @@
3939
"id": "bd93edb0-5acd-413e-80dd-25d593a58345",
4040
"metadata": {},
4141
"source": [
42-
"## Exponential state preparation on the full interval"
42+
"## Exponential State Preparation on the Full Interval"
4343
]
4444
},
4545
{
@@ -117,7 +117,7 @@
117117
"id": "079d2624-8ad5-44ea-a5d2-6644ba2e99a3",
118118
"metadata": {},
119119
"source": [
120-
"## Exp State on a specific interval with Exact Amplitude Amplification"
120+
"## Exp State on a Specific Interval with Exact Amplitude Amplification"
121121
]
122122
},
123123
{
@@ -223,9 +223,9 @@
223223
"id": "8edce582-89f8-4d19-aff4-375603c94308",
224224
"metadata": {},
225225
"source": [
226-
"### Adjust to the case that a single grover is not enough\n",
226+
"### Adjusting If a Single Grover is Not Enough\n",
227227
"\n",
228-
"If the wanted range does not hold enough amplitude, it is enough to load the end of the range (for positive `EXP_RATE`) or the beginning of the range (for negative `EXP_RATE`), then finish with a modular adder."
228+
"If the desired range does not hold enough amplitude, it is enough to load the end of the range (for a positive `EXP_RATE`) or the beginning of the range (for a negative `EXP_RATE`), then finish with a modular adder:"
229229
]
230230
},
231231
{
@@ -260,7 +260,7 @@
260260
"id": "f03aa802-2c23-4b89-aeab-db31a58ae5ba",
261261
"metadata": {},
262262
"source": [
263-
"This fraction of good states is not enough for a single grover iteration to amplify to 1. So we first load the same sized interval at the end of the range:"
263+
"This fraction of good states is not enough for a single Grover iteration to amplify to 1. So, first load the same sized interval at the end of the range:"
264264
]
265265
},
266266
{
@@ -349,7 +349,7 @@
349349
"id": "7c3e6647-fafc-41fc-84d2-72070ca01f9d",
350350
"metadata": {},
351351
"source": [
352-
"Verify the results:"
352+
"### Verifying the Results"
353353
]
354354
},
355355
{

applications/finance/autocallable_options/quantum_autocallable_option_pricing.ipynb

Lines changed: 62 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"metadata": {},
77
"source": [
88
"# Autocallables with Integration Amplitude Loading\n",
9-
"In this Notebook we will go through the implementation of the Integration Amplitude Loading Method for the autocallables based on https://arxiv.org/pdf/2402.05574.pdf and https://arxiv.org/pdf/2012.03819 using classiq platform QMOD language."
9+
"This notebook covers the implementation of the Integration Amplitude Loading Method for the autocallables based on [[1]](#QALROP) and [[2]](#TQA) using the Classiq platform's Qmod language."
1010
]
1111
},
1212
{
@@ -22,10 +22,13 @@
2222
"execution_count": 39,
2323
"id": "7c206d17",
2424
"metadata": {
25-
"collapsed": false,
2625
"ExecuteTime": {
2726
"end_time": "2025-06-22T15:37:58.815349Z",
2827
"start_time": "2025-06-22T15:37:58.800464Z"
28+
},
29+
"collapsed": false,
30+
"jupyter": {
31+
"outputs_hidden": false
2932
}
3033
},
3134
"outputs": [],
@@ -82,7 +85,7 @@
8285
"id": "4d310535",
8386
"metadata": {},
8487
"source": [
85-
"## Gaussian State preparation"
88+
"## Gaussian State Preparation"
8689
]
8790
},
8891
{
@@ -133,7 +136,7 @@
133136
"id": "2ff92132",
134137
"metadata": {},
135138
"source": [
136-
"Compute $R_T^{max}$ resulting from discretization."
139+
"Compute $R_T^{max}$ resulting from discretization:"
137140
]
138141
},
139142
{
@@ -178,7 +181,7 @@
178181
"id": "7e2ec6ab",
179182
"metadata": {},
180183
"source": [
181-
"In two's complement, given $N$ as number of qubits, we can represent from $-2^{N-1}$ and $2^{N-1}-1$."
184+
"In two's complement, given $N$ as the number of qubits, represent from $-2^{N-1}$ and $2^{N-1}-1$:"
182185
]
183186
},
184187
{
@@ -250,7 +253,7 @@
250253
"id": "9720568b",
251254
"metadata": {},
252255
"source": [
253-
"### Compute constant rotations"
256+
"## Compute Constant Rotations"
254257
]
255258
},
256259
{
@@ -319,7 +322,10 @@
319322
"cell_type": "markdown",
320323
"id": "02902fd7",
321324
"metadata": {
322-
"collapsed": false
325+
"collapsed": false,
326+
"jupyter": {
327+
"outputs_hidden": false
328+
}
323329
},
324330
"source": [
325331
"## Verifications"
@@ -338,7 +344,9 @@
338344
"outputs": [
339345
{
340346
"data": {
341-
"text/plain": "1.9215788783046464"
347+
"text/plain": [
348+
"1.9215788783046464"
349+
]
342350
},
343351
"execution_count": 50,
344352
"metadata": {},
@@ -362,7 +370,9 @@
362370
"outputs": [
363371
{
364372
"data": {
365-
"text/plain": "1.9215788783046523"
373+
"text/plain": [
374+
"1.9215788783046523"
375+
]
366376
},
367377
"execution_count": 51,
368378
"metadata": {},
@@ -386,7 +396,9 @@
386396
"outputs": [
387397
{
388398
"data": {
389-
"text/plain": "2.7693490391599074"
399+
"text/plain": [
400+
"2.7693490391599074"
401+
]
390402
},
391403
"execution_count": 52,
392404
"metadata": {},
@@ -410,7 +422,9 @@
410422
"outputs": [
411423
{
412424
"data": {
413-
"text/plain": "2.7693490391599074"
425+
"text/plain": [
426+
"2.7693490391599074"
427+
]
414428
},
415429
"execution_count": 53,
416430
"metadata": {},
@@ -434,7 +448,9 @@
434448
"outputs": [
435449
{
436450
"data": {
437-
"text/plain": "1.7763568394002505e-15"
451+
"text/plain": [
452+
"1.7763568394002505e-15"
453+
]
438454
},
439455
"execution_count": 54,
440456
"metadata": {},
@@ -684,7 +700,7 @@
684700
"tags": []
685701
},
686702
"source": [
687-
"## Integration Method circuit synthesis"
703+
"## Integration Method Circuit Synthesis"
688704
]
689705
},
690706
{
@@ -766,10 +782,13 @@
766782
"execution_count": 68,
767783
"id": "07f52524",
768784
"metadata": {
769-
"collapsed": false,
770785
"ExecuteTime": {
771786
"end_time": "2025-06-22T15:38:00.096570Z",
772787
"start_time": "2025-06-22T15:38:00.029467Z"
788+
},
789+
"collapsed": false,
790+
"jupyter": {
791+
"outputs_hidden": false
773792
}
774793
},
775794
"outputs": [],
@@ -922,18 +941,21 @@
922941
"id": "194c5c2f",
923942
"metadata": {},
924943
"source": [
925-
"## IQAE functions and QStruct"
944+
"## IQAE Functions and QStruct"
926945
]
927946
},
928947
{
929948
"cell_type": "code",
930949
"execution_count": 69,
931950
"id": "c62677d3",
932951
"metadata": {
933-
"collapsed": false,
934952
"ExecuteTime": {
935953
"end_time": "2025-06-22T15:38:00.099770Z",
936954
"start_time": "2025-06-22T15:38:00.069101Z"
955+
},
956+
"collapsed": false,
957+
"jupyter": {
958+
"outputs_hidden": false
937959
}
938960
},
939961
"outputs": [],
@@ -968,7 +990,7 @@
968990
"id": "2aa62bc4",
969991
"metadata": {},
970992
"source": [
971-
"## Base simulator sythesis"
993+
"## Base Simulator Synthesis"
972994
]
973995
},
974996
{
@@ -1016,10 +1038,13 @@
10161038
"execution_count": 71,
10171039
"id": "bb4c7d89",
10181040
"metadata": {
1019-
"collapsed": false,
10201041
"ExecuteTime": {
10211042
"end_time": "2025-06-22T15:38:45.852317Z",
10221043
"start_time": "2025-06-22T15:38:45.785258Z"
1044+
},
1045+
"collapsed": false,
1046+
"jupyter": {
1047+
"outputs_hidden": false
10231048
}
10241049
},
10251050
"outputs": [
@@ -1040,8 +1065,8 @@
10401065
"id": "95d7c365",
10411066
"metadata": {},
10421067
"source": [
1043-
"### Execution takes a lot of time\n",
1044-
"See the results below"
1068+
"Execution takes a lot of time. \n",
1069+
"Examine the results:"
10451070
]
10461071
},
10471072
{
@@ -1086,10 +1111,13 @@
10861111
"execution_count": 74,
10871112
"id": "5a474534",
10881113
"metadata": {
1089-
"collapsed": false,
10901114
"ExecuteTime": {
10911115
"end_time": "2025-06-22T15:38:45.924205Z",
10921116
"start_time": "2025-06-22T15:38:45.827303Z"
1117+
},
1118+
"collapsed": false,
1119+
"jupyter": {
1120+
"outputs_hidden": false
10931121
}
10941122
},
10951123
"outputs": [
@@ -1113,6 +1141,19 @@
11131141
" + str(postprocessing(0.1197666))\n",
11141142
")"
11151143
]
1144+
},
1145+
{
1146+
"cell_type": "markdown",
1147+
"id": "d840bf68-8161-47a6-a106-a39549471b46",
1148+
"metadata": {},
1149+
"source": [
1150+
"## References\n",
1151+
"\n",
1152+
"<a name='QALROP'>[1]</a> [Francesca Cibrario et al. (2024). Quantum Amplitude Loading for Rainbow Options Pricing. Preprint.](https://arxiv.org/abs/2402.05574v2)\n",
1153+
"\n",
1154+
"<a name='TQA'>[2]</a> [Shouvanik Chakrabarti et al. (2021). A Threshold for Quantum Advantage in Derivative Pricing, Quantum 5, 463.](https://arxiv.org/pdf/2012.03819)\n",
1155+
" "
1156+
]
11161157
}
11171158
],
11181159
"metadata": {

0 commit comments

Comments
 (0)