Adding calculate method to Algorithm, implemented for fidelity key on qpt, adding python example

Signed-off-by: Alex McCaskey <>
2 jobs for xacc-devel in 3 minutes and 15 seconds (queued for 2 seconds)
Status Name Job ID Coverage
failed docker build_devel #387305


failed docker build_devel #387303


Name Stage Failure
docker build_devel Build
Appending zipped resources to xacc-ibm
[ 91%] Built target xacc-ibm
[ 91%] Linking CXX shared library
Appending zipped resources to xacc-algorithm-qpt
[ 91%] Built target xacc-algorithm-qpt
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
The command '/bin/sh -c git clone --recursive -b xacc-devel && cd xacc && mkdir build && cd build && cmake .. -DXACC_BUILD_TESTS=TRUE && make -j$(nproc) install && PYTHONPATH=$HOME/.xacc ctest --output-on-failure' returned a non-zero code: 2
ERROR: Job failed: exit status 1