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

Signed-off-by: Alex McCaskey <mccaskeyaj@ornl.gov>
2 jobs for xacc-devel in 3 minutes and 15 seconds (queued for 2 seconds)