KOSASIH / cosmic-pi-network

Unnecessary else / elif used after return PYL-R1705
Style
Major
3 months ago3 months old
Unnecessary "elif" after "return", remove the leading "el" from "elif"
 6        self.matrix = np.eye(2**num_qubits, dtype=complex)
 7
 8    def __mul__(self, other):
 9        if isinstance(other, QGate):10            return QGate(self.num_qubits, np.dot(self.matrix, other.matrix))
11        elif isinstance(other, np.ndarray):
12            return np.dot(self.matrix, other)