def quantum_state_preparation_qiskit(circuit, parameters, n = 2):
    """

    Parameters
    ----------
    circuit: qiskit circuit
    parameters: n*2 array
                each row contains rx and ry parameters
                
    Returns
    -------
    qiskit circuit

    """

    q = circuit.qregs
    for i in range(len(q)):
        circuit.rx(parameters[i][0], q[i])
        circuit.ry(parameters[i][1], q[i])
        
    circuit.cx(q[1], q[0])
    
    return circuit