The controlled SWAP test for entanglement of mixed quantum states | Synapse