mimiqcircuits.classical.paritycheck¶
Classes
|
Deprecated alias of |
- class mimiqcircuits.classical.paritycheck.ParityCheck(N=3)[source]¶
Bases:
objectDeprecated alias of
Xor.ParityCheck(N)returnsXor(N), which computes the same parity of N-1 classical bits into the first bit, and emits aDeprecationWarning. No object is ever an instance ofParityCheck.Examples
>>> import warnings >>> from mimiqcircuits import * >>> with warnings.catch_warnings(): ... warnings.simplefilter("ignore", DeprecationWarning) ... ParityCheck(5) c[?0] = c[?1] ^ c[?2] ^ c[?3] ^ c[?4]