Here, we start with a number of partially entangled pairs and “distills” a smaller number of maximally entangled pairs. This is illustrated in the quantum circuit model.
Now, we consider n partially entangled pairs with each pair in the state described above. Let us take a look at the explicit expression for the n partially entangled pairs. Here,
Repeating the above procedure for other pairs, generate as many partially entangled pairs as you like. In this particular example, we prepare four pairs.
Let us check that the above quantum circuit indeed gives the sum of the bit values of the Bob’s qubits.
Transformation
To get the unitary transformation on Alice's side, we first rearrange the computational basis to get a new basis
Method 1: Using Dyad
These are the computational bases for Alice's and Bob's registers, respectively.
Finally, the unitary transformation is constructed as prescribed above.
By construction, the unitary transformations are just permutation, which is clear from their matrix representations.
Check that they are indeed unitary transformations.
Method 2: Using Permutation
Here, we find the permutation corresponding to the required basis change and use it to construct the unitary matrix.
Construct the operators corresponding to the above matrix.
Examine if the operator properly maps the computational basis states for Alice's qubits.
Also examine if the operator properly maps the computational basis states for Bob's qubits.
Overall
Now, we have all components. Our desired quantum circuit is as follows. The first part generates four partially entangled pairs, the second measures the total Pauli Z on Bob's register, and the last transforms the post-measurement state a fixed pair of qubits from Alice's and Bob's registers.
Here is the output state of the total system. Obviously, the whole register T is separated from the other two registers. So are the last two registers of the respective registers A and B.
Focusing on the first two qubits of registers A and B, we see that there are two maximally entangled pairs.
Remark
then there is no way to turn this state into a product state on a system of qubits.