mimiqcircuits.operations.noisechannel.standards.projectivenoise¶
Classes
|
One-qubit projective noise in a Pauli basis. |
One-qubit projective noise in the X basis. |
|
One-qubit projective noise in the Y basis. |
|
One-qubit projective noise in the Z basis. |
- class ProjectiveNoise(basis='Z')[source]¶
Bases:
krauschannelOne-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 ofProjectiveNoiseX,ProjectiveNoiseYorProjectiveNoiseZ, not ofProjectiveNoise.- Parameters:
basis (str) –
"X","Y"or"Z"(default"Z").- Raises:
ValueError – If
basisis 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:
Examples
>>> from mimiqcircuits import * >>> AmplitudeDamping(0.36).krausmatrices() [[1.0, 0] [0, 0.8] , [0, 0.6] [0, 0] ]
- class ProjectiveNoiseX[source]¶
Bases:
krauschannelOne-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.See also
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,DiagonalOporRescaledGate) per Kraus operator.- Return type:
- 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:
krauschannelOne-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.See also
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,DiagonalOporRescaledGate) per Kraus operator.- Return type:
- 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:
krauschannelOne-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.See also
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,DiagonalOporRescaledGate) per Kraus operator.- Return type:
- 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)]