Closed peendebak closed 3 years ago
@peendebak Hi I'll 'hijack' this branch to add the functionality you requested. It will be implemented somewhat different because the calibration data can be different for each result when we have more Qiskit circuits in the job. To get the calibration from a result we use a construction similar to getting the probabilities from the result.
The minimal example of Pieter should be rewritten as:
import quantuminspire
from quantuminspire.credentials import get_authentication
from quantuminspire.qiskit import QI
from qiskit.circuit import QuantumCircuit
from qiskit import execute
qc=QuantumCircuit(2,2)
qc.h(0)
qc.cz(0,1)
qc.measure_all()
qc.draw()
authentication = get_authentication()
QI.set_authentication(authentication)
backend = QI.get_backend("Starmon-5")
job = execute(qc, backend)
result = job.result()
calibration = result.get_calibration(qc)
print(calibration)
A minimal example:
@QFer Not sure how to test this, since in the tests we have no active backends I think.