Fock Simulators#
Warning
The ordering of the Fock basis is increasing with particle numbers, and in each particle number conserving subspace, lexicographic ordering is used.
Example for 3 modes:
General Fock Simulator#
- class FockSimulator(d: int, config: Optional[piquasso.api.config.Config] = None)#
Performs photonic simulations using Fock representation.
The simulation (when executed) results in an instance of
FockState
.Example usage:
with pq.Program() as program: pq.Q() | pq.Vacuum() simulator = pq.FockSimulator(d=5) result = simulator.execute(program)
- Supported preparations:
- Supported gates:
Interferometer
,Beamsplitter
,Phaseshifter
,MachZehnder
,Fourier
,Kerr
,CrossKerr
,CubicPhase
,GaussianTransform
,Squeezing
,QuadraticPhase
,Squeezing2
,ControlledX
,ControlledZ
,Displacement
,PositionDisplacement
,MomentumDisplacement
.- Supported measurements:
- Supported channels:
Pure Fock Simulator#
- class PureFockSimulator(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
PureFockState
.Example usage:
with pq.Program() as program: pq.Q() | pq.Vacuum() simulator = pq.PureFockSimulator(d=5) result = simulator.execute(program)
- Supported preparations:
- Supported gates:
Interferometer
,Beamsplitter
,Phaseshifter
,MachZehnder
,Fourier
,Kerr
,CrossKerr
,CubicPhase
,GaussianTransform
,Squeezing
,QuadraticPhase
,Squeezing2
,ControlledX
,ControlledZ
,Displacement
,PositionDisplacement
,MomentumDisplacement
.- Supported measurements:
- Supported channels: