mimiqcircuits.operations.operators.sigmas¶
Classes
|
One-qubit operator corresponding to \(|0 \rangle\langle 1|\). |
|
One-qubit operator corresponding to \(|1 \rangle\langle 0|\). |
- class mimiqcircuits.operations.operators.sigmas.SigmaMinus(a=1)[source]¶
Bases:
AbstractOperatorOne-qubit operator corresponding to \(|0 \rangle\langle 1|\).
Matrix Representation
\[\begin{split}\begin{pmatrix} 0 & a\\ 0 & 0 \end{pmatrix}\end{split}\]This matrix is parametrized by a to allow for phases/rescaling.
The parameter a is optional and is set to 1 by default.
See also
- Parameters:
a (complex, optional) – Scaling factor for the matrix. Defaults to 1.
Examples
>>> from mimiqcircuits import * >>> SigmaMinus() SigmaMinus(1)
>>> SigmaMinus(0.5) SigmaMinus(0.5)
>>> c = Circuit() >>> c.push(ExpectationValue(SigmaMinus()), 1, 1) 2-qubit, 2-zvar circuit with 1 instruction: └── ⟨SigmaMinus(1)⟩ @ q[1], z[1]
- property parnames¶
- property num_qubits¶
- class mimiqcircuits.operations.operators.sigmas.SigmaPlus(a=1)[source]¶
Bases:
AbstractOperatorOne-qubit operator corresponding to \(|1 \rangle\langle 0|\).
Matrix Representation
\[\begin{split}\begin{pmatrix} 0 & 0\\ a & 0 \end{pmatrix}\end{split}\]This matrix is parametrized by a to allow for phases/rescaling.
The parameter a is optional and is set to 1 by default.
See also
- Parameters:
a (complex, optional) – Scaling factor for the matrix. Defaults to 1.
Examples
>>> from mimiqcircuits import * >>> SigmaPlus() SigmaPlus(1)
>>> SigmaPlus(0.5) SigmaPlus(0.5)
>>> c = Circuit() >>> c.push(ExpectationValue(SigmaPlus()), 1, 1) 2-qubit, 2-zvar circuit with 1 instruction: └── ⟨SigmaPlus(1)⟩ @ q[1], z[1]
- property parnames¶
- property num_qubits¶