Beispiel #1
0
 public override void ControlledX(IQArray <Qubit> controls, Qubit qubit)
 {
     if (controls.All(control => GetValue(control)))
     {
         InvertValue(qubit);
     }
 }
 internal bool VerifyControlCondition(IQArray <Qubit> ctrls)
 {
     return(ctrls.All(c => State[c.Id]));
 }