mimiqcircuits.operations.noisechannel.standards.projectivenoise

Classes

ProjectiveNoise([basis])

One-qubit projective noise in a Pauli basis.

ProjectiveNoiseX()

One-qubit projective noise in the X basis.

ProjectiveNoiseY()

One-qubit projective noise in the Y basis.

ProjectiveNoiseZ()

One-qubit projective noise in the Z basis.

class ProjectiveNoise(basis='Z')[source]

Bases: krauschannel

One-qubit projective noise in a Pauli basis.

The Kraus operators are

\[E_1 = |\alpha\rangle \langle\alpha|, \quad E_2 = |\beta\rangle \langle\beta|,\]

where \(|\alpha\rangle\) and \(|\beta\rangle\) are the +1 and -1 eigenstates of a Pauli operator: \(\{ |0\rangle, |1\rangle \}\) for Z, \(\{ |+\rangle, |-\rangle \}\) for X and \(\{ |y+\rangle, |y-\rangle \}\) for Y.

The channel acts like a measurement in that basis whose outcome is not stored: the coherences between the two basis states are lost.

Calling ProjectiveNoise(basis) returns an instance of ProjectiveNoiseX, ProjectiveNoiseY or ProjectiveNoiseZ, not of ProjectiveNoise.

Parameters:

basis (str) – "X", "Y" or "Z" (default "Z").

Raises:

ValueError – If basis is not one of "X", "Y", "Z".

Examples

>>> from mimiqcircuits import *
>>> # dephase qubit 1 in the computational basis
>>> c = Circuit()
>>> c.push(ProjectiveNoise("Z"), 1)
2-qubit circuit with 1 instruction:
└── ProjectiveNoiseZ @ q[1]
>>> # the Kraus matrices are the projectors onto the basis states
>>> ProjectiveNoise("X").krausmatrices()
[[0.5, 0.5]
[0.5, 0.5]
, [0.5, -0.5]
[-0.5, 0.5]
]
>>> ProjectiveNoise("Y").krausmatrices()
[[0.5, 0.0 - 0.5*I]
[0.0 + 0.5*I, 0.5]
, [0.5, 0.0 + 0.5*I]
[0.0 - 0.5*I, 0.5]
]
>>> ProjectiveNoise("Z").krausmatrices()
[[1.0, 0]
[0, 0]
, [0, 0]
[0, 1.0]
]
krausmatrices()[source]

Return the matrices of the Kraus operators \(E_k\) of the channel.

These are the matrices of krausoperators(), in the same order. For a parametric channel the entries are symbolic expressions.

Returns:

One symengine matrix per Kraus operator.

Return type:

list

Examples

>>> from mimiqcircuits import *
>>> AmplitudeDamping(0.36).krausmatrices()
[[1.0, 0]
[0, 0.8]
, [0, 0.6]
[0, 0]
]
class ProjectiveNoiseX[source]

Bases: krauschannel

One-qubit projective noise in the X basis.

The Kraus operators are

\[E_1 = |+\rangle\langle+|, \quad E_2 = |-\rangle\langle-|,\]

the projectors onto the eigenstates \(|+\rangle\) and \(|-\rangle\) of Pauli X. The channel removes the coherences between the two basis states, like a measurement in the X basis whose outcome is discarded. ProjectiveNoise("X") returns an instance of this class.

Examples

>>> from mimiqcircuits import *
>>> ProjectiveNoiseX().krausoperators()
[PX₀(1), PX₁(1)]
krausoperators()[source]

Return the Kraus operators \(E_k\) of the channel as operator objects.

Every concrete channel implements this method; the base class raises.

Returns:

One operator (for example Operator, DiagonalOp or RescaledGate) per Kraus operator.

Return type:

list

Raises:

NotImplementedError – When called on a class that does not define it.

Examples

>>> from mimiqcircuits import *
>>> # projective noise in Z: project on |0> or on |1>
>>> ProjectiveNoise("Z").krausoperators()
[P₀(1), P₁(1)]
class ProjectiveNoiseY[source]

Bases: krauschannel

One-qubit projective noise in the Y basis.

The Kraus operators are

\[E_1 = |y+\rangle\langle y+|, \quad E_2 = |y-\rangle\langle y-|,\]

the projectors onto the eigenstates \(|y+\rangle\) and \(|y-\rangle\) of Pauli Y. The channel removes the coherences between the two basis states, like a measurement in the Y basis whose outcome is discarded. ProjectiveNoise("Y") returns an instance of this class.

Examples

>>> from mimiqcircuits import *
>>> ProjectiveNoiseY().krausoperators()
[PY₀(1), PY₁(1)]
krausoperators()[source]

Return the Kraus operators \(E_k\) of the channel as operator objects.

Every concrete channel implements this method; the base class raises.

Returns:

One operator (for example Operator, DiagonalOp or RescaledGate) per Kraus operator.

Return type:

list

Raises:

NotImplementedError – When called on a class that does not define it.

Examples

>>> from mimiqcircuits import *
>>> # projective noise in Z: project on |0> or on |1>
>>> ProjectiveNoise("Z").krausoperators()
[P₀(1), P₁(1)]
class ProjectiveNoiseZ[source]

Bases: krauschannel

One-qubit projective noise in the Z basis.

The Kraus operators are

\[E_1 = |0\rangle\langle 0|, \quad E_2 = |1\rangle\langle 1|,\]

the projectors onto the computational basis states, the eigenstates of Pauli Z. The channel removes the coherences between the two basis states, like a measurement in the Z basis whose outcome is discarded. ProjectiveNoise("Z") returns an instance of this class.

Examples

>>> from mimiqcircuits import *
>>> ProjectiveNoiseZ().krausoperators()
[P₀(1), P₁(1)]
krausoperators()[source]

Return the Kraus operators \(E_k\) of the channel as operator objects.

Every concrete channel implements this method; the base class raises.

Returns:

One operator (for example Operator, DiagonalOp or RescaledGate) per Kraus operator.

Return type:

list

Raises:

NotImplementedError – When called on a class that does not define it.

Examples

>>> from mimiqcircuits import *
>>> # projective noise in Z: project on |0> or on |1>
>>> ProjectiveNoise("Z").krausoperators()
[P₀(1), P₁(1)]