def test_swap_network_trotter_ansatz_param_bounds():

    ansatz = SwapNetworkTrotterAnsatz(hubbard_hamiltonian)
    assert list(symbol.name for symbol in ansatz.params()) == [
        'V_0_1_0', 'T_0_2_0', 'T_0_4_0', 'T_1_3_0', 'T_1_5_0', 'V_2_3_0',
        'T_2_6_0', 'T_3_7_0', 'V_4_5_0', 'T_4_6_0', 'T_5_7_0', 'V_6_7_0'
    ]
    assert ansatz.param_bounds() == [(-1.0, 1.0), (-2.0, 2.0), (-2.0, 2.0),
                                     (-2.0, 2.0), (-2.0, 2.0), (-1.0, 1.0),
                                     (-2.0, 2.0), (-2.0, 2.0), (-1.0, 1.0),
                                     (-2.0, 2.0), (-2.0, 2.0), (-1.0, 1.0)]
def test_swap_network_trotter_ansatz_param_bounds():

    ansatz = SwapNetworkTrotterAnsatz(hubbard_hamiltonian)
    assert ansatz.param_names() == [
        'V0_1', 'T0_2', 'T0_4', 'T1_3', 'T1_5', 'V2_3', 'T2_6', 'T3_7', 'V4_5',
        'T4_6', 'T5_7', 'V6_7'
    ]
    assert ansatz.param_bounds() == [(-1.0, 1.0), (-2.0, 2.0), (-2.0, 2.0),
                                     (-2.0, 2.0), (-2.0, 2.0), (-1.0, 1.0),
                                     (-2.0, 2.0), (-2.0, 2.0), (-1.0, 1.0),
                                     (-2.0, 2.0), (-2.0, 2.0), (-1.0, 1.0)]