# Circuit of the month Oct 21: option pricing shortfall

### Overview

Our October '21 circuit of the month calculates the expected shortfall for a financial option. When performing financial risk analysis, one may be interested in calculating the conditional value at risk, which is also known as the expected shortfall.

### Available downloads

- The QASM code generated by the Classiq synthesis engine
- The Q# code generated by the Classiq synthesis engine
- The full circuit diagram (see the large circuit below)

### Possible modifications

There are many possible variations for this circuit. For instance, one could change the qubit count (line 2) and explore the tradeoff between depth and width. Clearly, one could also change the parameters of the gaussian (lines 11-16).

One could also change the finance function from "expected shortfall" to other functions. For instance, change to a European Call Option and generate any function using Chebyshev polynomial approximation:

### References

- Paul Glasserman, Monte Carlo Methods in Financial Engineering. Springer-Verlag New York, 2003, p. 596.
- Gilles Brassard, Peter Hoyer, Michele Mosca, and Alain Tapp, Quantum Amplitude Amplification and Estimation. Contemporary Mathematics 305 (2002)
- Woerner, S., Egger, D.J. Quantum risk analysis. npj Quantum Inf 5, 15 (2019).

### Next month

What would you like to see in next month's circuit? Let us know using the 'Contact us' button on the top right.

### The full circuit

The circuit that was generated, within a few seconds, by the Classiq Quantum Algorithm Design platform is below:

### Overview

Our October '21 circuit of the month calculates the expected shortfall for a financial option. When performing financial risk analysis, one may be interested in calculating the conditional value at risk, which is also known as the expected shortfall.

### Available downloads

- The QASM code generated by the Classiq synthesis engine
- The Q# code generated by the Classiq synthesis engine
- The full circuit diagram (see the large circuit below)

### Possible modifications

There are many possible variations for this circuit. For instance, one could change the qubit count (line 2) and explore the tradeoff between depth and width. Clearly, one could also change the parameters of the gaussian (lines 11-16).

One could also change the finance function from "expected shortfall" to other functions. For instance, change to a European Call Option and generate any function using Chebyshev polynomial approximation:

### References

- Paul Glasserman, Monte Carlo Methods in Financial Engineering. Springer-Verlag New York, 2003, p. 596.
- Gilles Brassard, Peter Hoyer, Michele Mosca, and Alain Tapp, Quantum Amplitude Amplification and Estimation. Contemporary Mathematics 305 (2002)
- Woerner, S., Egger, D.J. Quantum risk analysis. npj Quantum Inf 5, 15 (2019).

### Next month

What would you like to see in next month's circuit? Let us know using the 'Contact us' button on the top right.

### The full circuit

The circuit that was generated, within a few seconds, by the Classiq Quantum Algorithm Design platform is below:

## About "The Qubit Guy's Podcast"

Hosted by The Qubit Guy (Yuval Boger, our Chief Marketing Officer), the podcast hosts thought leaders in quantum computing to discuss business and technical questions that impact the quantum computing ecosystem. Our guests provide interesting insights about quantum computer software and algorithm, quantum computer hardware, key applications for quantum computing, market studies of the quantum industry and more.

If you would like to suggest a guest for the podcast, please contact us.