Preparing tunable Bell-diagonal states on a quantum computer