Errors
– Quantum errors in channels¶
-
class
squanch.errors.
QError
(qchannel)[source]¶ Bases:
object
A generalized quantum error model
-
__init__
(qchannel)[source]¶ Base initialization class; extend in child methods by overwriting along with QError.__init__(self, qchannel)
Parameters: qchannel – the quantum channel this error model is being used on
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
squanch.errors.
AttenuationError
(qchannel, attenuation_coefficient=-0.16)[source]¶ Bases:
squanch.errors.QError
Simulate the possible loss of a qubit in a fiber optic channel due to attenuation effects
-
class
squanch.errors.
RandomUnitaryError
(qchannel, variance)[source]¶ Bases:
squanch.errors.QError
Simualates a random rotation along X and Z with a Gaussian distribution of rotation angles
-
class
squanch.errors.
SystematicUnitaryError
(qchannel, operator=None, variance=None)[source]¶ Bases:
squanch.errors.QError
Simulates a random unitary error that is the same for each qubit