eclipse / xacc

XACC - eXtreme-scale Accelerator programming framework
https://xacc.readthedocs.io
BSD 3-Clause "New" or "Revised" License
163 stars 84 forks source link

Incomplete Installation Instruction and Dependency List #548

Open eul94458 opened 2 years ago

eul94458 commented 2 years ago

Attempted several tries in installation then I gave up. Too many unsolvable errors. Then I went to check the docker solution to see if this is working. And yes, not even working on docker. Dependencies are not installed in the docker image. Not even able to do an error free import and to run vqe.

    import xacc

[errors]

    # Get access to the desired QPU and
    # allocate some qubits to run on
    qpu = xacc.getAccelerator('tnqvm')
    buffer = xacc.qalloc(2)

    # Construct the Hamiltonian as an XACC-VQE PauliOperator
    ham = xacc.getObservable('pauli', '5.907 - 2.1433 X0X1 - 2.1433 Y0Y1 + .21829 Z0 - 6.125 Z1')

    xacc.qasm('''.compiler xasm
    .circuit ansatz2
    .parameters t0
    .qbit q
    X(q[0]);
    Ry(q[1],t0);
    CX(q[1],q[0]);
    ''')

[errors]