Suppose I have the following calibration matrix generated using 4 qubits:
from qiskit.ignis.mitigation.measurement import (complete_meas_cal, CompleteMeasFitter)
cal_circuits, state_labels = complete_meas_cal(qr = qc.qregs[0],circlabel = 'measerrormitigationcal')
cal_job = execute(cal_circuits,
backend = device,
shots = 1024,
optimization_level = 0
)
print(cal_job.job_id())
job_monitor(cal_job)
cal_results = cal_job.result()
meas_fitter = CompleteMeasFitter(cal_results, state_labels)
import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(10, 10))
meas_fitter.plot_calibration(ax)
Is there a way I can use this filter to reduce another quantum circuit with 3 qubits? (i.e. A subset with 8 elements) (I was wondering if I could add a '0'
after the keys but it seems like this won't work since the additional qubit might 'flip'. )
Thanks!!