This work presents a developed Wolfram Mathematica software tool based on the Quantum extension package. This tool is able to simulate the output state for any linear optical circuit based on Beam Splitters (BSs) and Phase Sifters (PSs) by using as input, quantum states of light. The input of the software is described via the use of photon number states capable of emulating Fock states or coherent states, whereas the output provides the probability of detecting a photon at each output port. This photonic circuit may include any number of linear optical elements, including beam splitters with variable splitting ratios, as well as phase shifters. By using the unitary transformation of any photonic circuit (e.g., photonic chip), the output states can be computed, and detection probabilities of the chip can be obtained. The unitary transformation of the Controlled NOT (CNOT) quantum gate through a linear optical layout is presented, validating the functionality of the proposed software tool. In conclusion, the proposed software aims to enable testing of simple photonic circuits in the quantum regime.
|