So I am working with a variational quantum algorithm and I realised that it would be very beneficial if I could create an ansatz where all the states in the superposition have same numbers of 1s. For example, if I am working with a 5 qubit system, I want the ansatz to look like this :
$$|{\psi \rangle = a_0| 10001\rangle + a_1|10010 \rangle + a_2|10100 \rangle + a_3| 11000\rangle + a_4|01001 \rangle + a_5| 01010\rangle + a_6| 01100\rangle + a_7|00101 \rangle + a_8| 00110\rangle + a_9|00011 \rangle }$$
for number of ones = 2 or
$$| \psi \rangle = a_0|10000 \rangle + a_1|01000 \rangle + a_2| 00100\rangle + a_3| 00010\rangle + a_4| 00001 \rangle$$
for number of ones = 1
(These two are different ansatz and will be used for different runs of the VQA)
Is there a way to create this kind of ansatz for different total number of qubits and number of ones?
Some extra background on my problem :
This kind of selection would help me access more information about the Hamiltonian I am dealing with. I am not sure about the number of parameters, they're definitely less for 2/3 qubits but higher dimensions might require a lot more parameters.
I am trying to solve a tight binding hamiltonian and if I create the ansatz in this way, I can find the lowest eigenvalue of all the subsystems and not only th lowest eigenvalue of the whole fock space.