def prepare_reference(self, state=None, *args, **kwargs):
    '\n\n        Returns\n        -------\n        A tequila circuit object which prepares the reference of this molecule in the chosen transformation\n        '
    if (state is None):
        assert ((self.n_electrons % 2) == 0)
        state = ([0] * (self.n_orbitals * 2))
        for i in range(self.n_electrons):
            state[i] = 1
    reference_state = BitString.from_array(self.transformation.map_state(state=state))
    U = prepare_product_state(reference_state)
    U.n_qubits = (self.n_orbitals * 2)
    return U
Returns
-------
A tequila circuit object which prepares the reference of this molecule in the chosen transformation
def prepare_reference(self, state=None, *args, **kwargs):
    '\n\n        Returns\n        -------\n        A tequila circuit object which prepares the reference of this molecule in the chosen transformation\n        '
    if (state is None):
        assert ((self.n_electrons % 2) == 0)
        state = ([0] * (self.n_orbitals * 2))
        for i in range(self.n_electrons):
            state[i] = 1
    reference_state = BitString.from_array(self.transformation.map_state(state=state))
    U = prepare_product_state(reference_state)
    U.n_qubits = (self.n_orbitals * 2)
    return U