cuda-quantum icon indicating copy to clipboard operation
cuda-quantum copied to clipboard

Add a property flag in `kraus_op` to identify whether it is a 'scaled' unitary matrix

Open 1tnguyen opened this issue 6 months ago • 1 comments

Description

Kraus operators can be categorized into (1) probabilistic unitary application (e.g., depolarizing) or (2) non-unitary matrix application (e.g., amplitude damping).

This PR adds a property flag and a utility function to categorize Kraus operators. Also, added a unit test to verify the correctness of the check.

1tnguyen avatar Aug 13 '24 03:08 1tnguyen