Boson Sampling Simulator#
- class SamplingSimulator(d: int, config: Optional[piquasso.api.config.Config] = None)#
Performs photonic simulations using Fock representation with pure states.
The simulation (when executed) results in an instance of
SamplingState
.Example usage:
with pq.Program() as program: pq.Q() | pq.Vacuum() simulator = pq.SamplingSimulator(d=5) result = simulator.execute(program)
- Supported preparations:
- Supported gates:
Interferometer
,Beamsplitter
,Phaseshifter
,MachZehnder
,Fourier
,Interferometer
.- Supported measurements:
- Supported channels:
Loss
.