(self, qubit)
return all(qubit[bit] == self.control_value for bit in self.controls)
Return True/False to indicate if the controls are satisfied.
Return True/False to indicate if the controls are satisfied.
Return True / False to indicate if the controls are satisfied .
def eval_controls(self, qubit):
        """Return True/False to indicate if the controls are satisfied."""
        return all(qubit[bit] == self.control_value for bit in self.controls)
def eval_controls ( self , qubit ) : return all ( qubit [ bit ] == self . control_value for bit in self . controls )