SeQUeNCe icon indicating copy to clipboard operation
SeQUeNCe copied to clipboard

Weird assertion

Open LesterKim opened this issue 4 years ago • 1 comments

Why do the fidelities have to be equal here? Would the below be enough?

        assert all(memory.fidelity > 0.5 for memory in (self.kept_memo, self.meas_memo))

LesterKim avatar Apr 16 '21 16:04 LesterKim

Do you mean the code at here?

The reason is BBPSSW protocol requires two pairs of identical entangled qubits. The attached code does not check if two given entangled memories have the identical fidelity. If the purification protocol execute successfully, the updated fidelity is calculated by this function. If the fidelity of kept memory is different from the measured memory, I'm not sure which fidelity should be used as the input of function.

xwu64 avatar Apr 28 '21 04:04 xwu64