dtype
configuration variable inConfig
to set precision of calculations.Kerr
gate calculation inPureFockSimulator
performance improved.- Gradient calculation in
TensorflowPureFockSimulator
got improved. - A method called
PureFockState.mean_position
which calculates the average position in a specified mode. normalize
configuration variable inConfig
to enable/disable normalization of statesPureFockSimulator
andFockSimulator
.
Displacement
parametrization is simplified.- The autoscaling of single mode gates got deleted.
- Vacuum state typing issue fixed in
PureFockSimulator
. - Calculation error during gradient calculation.
- Several major performance improvements got implemented in
TensorflowPureFockSimulator
.
quantum-blackbird
version got bumped fornumpy
compatibility.Kerr
gate was applied with a wrong equation, it got corrected.- Typing error was fixed when applying
Interferometer
inTensorflowPureFockSimulator
.
- Performance increase for the
PureFockSimulator
andTensorflowPureFockSimulator
.
GaussianState.fidelity
gave incorrect results for multiple modes and it needed to be corrected.- During Williamson decomposition, sometimes
scipy.linalg.sqrtm
returned with complex matrices instead of real ones which caused problems so it is manually casted to real. - In
TensorflowPureFockSimulator
, the gradient of the displacement gate matrix was not applied properly to the upstream gradient, a conjugation is added. - Using
TensorflowPureFockSimulator
, the input of theInterferometer
gate was not converted to atensorflow.Tensor
automatically, which has been included.
- A simulator class called
TensorflowPureFockSimulator
, which uses Tensorflow and is able to calculate gradients.
- By enabling Tensorflow support, we dropped support for customizing the
permanent, hafnian and loop hafnian calculations through
Config
.
SamplingSimulator
along withLoss
using uniform transmissivity (transmittance) parameters andParticleNumberMeasurement
produced only-zero samples instead of the expected samples.
- Support for
Attenuator
inFockSimulator
andPureFockSimulator
. LossyInterferometer
channel forSamplingSimulator
.- Possibility to provide the
hafnian
as a function inpiquasso.Config
.
- The occupation number order has been changed from lexicographic to anti-lexicographic.
- The
piquasso.api.errors
module got renamed topiquasso.api.exceptions
. - The
Sampling
measurement class has been unified withParticleNumberMeasurement
.
Kerr
gate calculations were incorrect for multiple modes inFockSimulator
andPureFockSimulator
.- Calculations that were incorrect for multiple modes using
FockSimulator
along withSqueezing
,Displacement
orCubicPhase
. - Symmetric tensorpower ordering in Fock-backend simulations.
- Handling 0 matrix elements at Clements decomposition.