QuantumSim
QuantumSim#
- class QuantumSim(ckt: Callable[[...], Union[Dict[Tuple[str, str], jaxtyping.Complex[Array, '...']], Tuple[jaxtyping.Int[Array, 'dim'], jaxtyping.Int[Array, 'dim'], jaxtyping.Complex[Array, '...'], Dict[str, int]], Tuple[jaxtyping.Complex[Array, '...'], Dict[str, int]]]], **kwargs)[source]#
Bases:
simphony.simulation.Simulation
Quantum simulation.
- Parameters
ckt (sax.saxtypes.Model) – The circuit to simulate.
wl (ArrayLike) – The array of wavelengths to simulate (in microns).
**params – Any other parameters to pass to the circuit.
Examples
>>> sim = QuantumSim(ckt=mzi, wl=wl, top={"length": 150.0}, bottom={"length": 50.0})