class SingleBit

Base for one-bit gates.

Concepts/Code by: Rafal Podeszwa, Christopher Dawson, Peter Belkner, Yan Pritzker
Members

Public
virtual void operator() (QState &q, int bit)
void SetMatrix (const Complex &a00, const Complex &a01, const Complex &a10, const Complex &a11)

Protected
SingleBit (const Complex &a00=1, const Complex &a01=0, const Complex &a10=0, const Complex &a11=1) : Constructor to create gate matrix (Identity by default)




Return To Index