SeQUeNCe
SeQUeNCe copied to clipboard
Weird assertion
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))
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.