{ "cells": [ { "cell_type": "markdown", "id": "d06baf83", "metadata": {}, "source": [ "# SOQCS Example 9: Dielectric film with losses." ] }, { "cell_type": "markdown", "id": "1ca2492b", "metadata": {}, "source": [ "
We consider a circuit made of single dielectric thin film as studied in [1]. We reproduce numerically the results presented in figs 2 and 3 of the same ref. [1] obtained by means of analytical calculations to validate the loss model in SOQCS. Each of the figures correspond to the cases where two photons are injected in the dielectric from the same direction or from opposite directions. Here, both situations are considered as two different input channels therefore we plot the different outcome probabilities as function of the transmission amplitude |t| for each of the two cases | 2, 0 > and | 1, 1 >.
\n", " Next, we build a function that contains the calculation of the output probability of the dielectric given a transmission amplitude t for the case when the input is $|2, 0 >$. The probability is calculated for a specific outcome. Its occupation is provided to the function as parameters.
\n",
"
\n",
"Note: This is not the most efficient implementation. All the objects have to be recreated for each point calculation and only one probability is returned at a time (even if various have been calculated). This code is implemented for demonstration purposes therefore it is intended to be simple.
Next, we build a function that contains the calculation of the output probability of the dielectric given a transmission amplitude t for the case when the input is $|1, 1 >$. The probability is calculated for a specific outcome. Its occupation is provided to the function as parameters.
\n",
"
\n",
"Note: This is not the most efficient implementation. All the objects have to be recreated for each point calculation and only one probability is returned at a time (even if various have been calculated). This code is implemented for demonstration purposes therefore it is intended to be simple.