diff --git a/src/qibo/gates/channels.py b/src/qibo/gates/channels.py index 07c4932e5d..aeaaf6f02e 100644 --- a/src/qibo/gates/channels.py +++ b/src/qibo/gates/channels.py @@ -179,6 +179,14 @@ def to_pauli_liouville( return super_op + def matrix(self, backend=None): + """""" + raise_error( + NotImplementedError, + "`matrix` method not defined for Channels. " + + "Please use one of the following methods: " + + "`to_choi` or `to_liouville` or `to_pauli_liouville`." + ) class KrausChannel(Channel): """General channel defined by arbitrary Kraus operators.