mimiqcircuits.classical.paritycheck

Classes

ParityCheck([N])

Deprecated alias of Xor.

class mimiqcircuits.classical.paritycheck.ParityCheck(N=3)[source]

Bases: object

Deprecated alias of Xor.

ParityCheck(N) returns Xor(N), which computes the same parity of N-1 classical bits into the first bit, and emits a DeprecationWarning. No object is ever an instance of ParityCheck.

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]