<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JAMP</journal-id><journal-title-group><journal-title>Journal of Applied Mathematics and Physics</journal-title></journal-title-group><issn pub-type="epub">2327-4352</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jamp.2021.96083</article-id><article-id pub-id-type="publisher-id">JAMP-109835</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Simple Mitigation Strategy for a Systematic Gate Error in IBMQ
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Daniel</surname><given-names>Bultrini</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Max</surname><given-names>Hunter Gordon</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Esperanza</surname><given-names>López</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Germán</surname><given-names>Sierra</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Instituto de Fsica Teórica, Universidad Autónoma de Madrid, Madrid, Spain</addr-line></aff><pub-date pub-type="epub"><day>09</day><month>06</month><year>2021</year></pub-date><volume>09</volume><issue>06</issue><fpage>1215</fpage><lpage>1229</lpage><history><date date-type="received"><day>27,</day>	<month>April</month>	<year>2021</year></date><date date-type="rev-recd"><day>12,</day>	<month>June</month>	<year>2021</year>	</date><date date-type="accepted"><day>15,</day>	<month>June</month>	<year>2021</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  In this paper, we report the observation and characterisation of a systematic error in the implementation of 
  <em>U</em>
  <sub>3</sub> gates in the IBM quantum computers. By measuring the effect of this gate for various rotation angles the error appears as an over-rotation, whose magnitude does not correlate with IBM’s cited errors calculated using Clifford randomized benchmarking. We propose a simple mitigation procedure to limit the effects of this error. We show that using a simple mitigation strategy one can obtain improved results in the observed value for the CHSH inequality, measured in a cloud-based quantum computer. This work highlights the utility of simple mitigation strategies for short-depth quantum circuits.
 
</p></abstract><kwd-group><kwd>Quantum Computing</kwd><kwd> Error Mitigation</kwd><kwd> CHSH Inequalities</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>The field of quantum computing has the potential to transform a wide variety of scientific fields including material science and quantum chemistry. Hardware noise in the computation presents a big problem for quantum computing as noise in general destroys coherence and entanglement in the quantum state, which is essential for a successful quantum algorithm. In order to address this problem, quantum error correction uses extra qubits to detect and correct errors introduced by the effects of noise. Error correction is essential in the development of fully functional quantum computers. However, existing hardware does not meet the requirements to implement fault-tolerant quantum error correction, outside of small preliminary studies [<xref ref-type="bibr" rid="scirp.109835-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.109835-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.109835-ref3">3</xref>] [<xref ref-type="bibr" rid="scirp.109835-ref4">4</xref>]. The accuracy of observables produced by current hardware is therefore limited, but many candidate applications require greater precision to outperform classical methods. For this reason, it is widely regarded that error mitigation will be essential in demonstrating near-term quantum advantage [<xref ref-type="bibr" rid="scirp.109835-ref5">5</xref>].</p><p>Error mitigation aims to reduce the effect of noise rather than remove it completely. There are many distinct approaches towards this goal, with two common methods being: optimizing quantum circuits through compilation and machine learning [<xref ref-type="bibr" rid="scirp.109835-ref6">6</xref>] [<xref ref-type="bibr" rid="scirp.109835-ref7">7</xref>] [<xref ref-type="bibr" rid="scirp.109835-ref8">8</xref>] and classical post-processing. One of the most promising post-processing techniques is zero noise extrapolation [<xref ref-type="bibr" rid="scirp.109835-ref9">9</xref>] which combines observables evaluated at several controlled noise levels [<xref ref-type="bibr" rid="scirp.109835-ref10">10</xref>] [<xref ref-type="bibr" rid="scirp.109835-ref11">11</xref>], enabling extrapolation to the zero-noise limit. Recently several new mitigation methods have been developed that make use of learning from data sets constructed using quantum circuit data [<xref ref-type="bibr" rid="scirp.109835-ref12">12</xref>] [<xref ref-type="bibr" rid="scirp.109835-ref13">13</xref>] demonstrating the rapid progress in this field.</p><p>Errors occur due to a multitude of factors in both the qubits themselves and the control hardware. Qubits are not completely isolated from their environment, leading to thermal relaxation and the decoherence of their state. Gate errors result from miscalibration or imperfections in the control hardware and their interactions with the qubits. Furthermore, the readout procedure can misidentify or alter the final qubit state such that the measured value does not accurately reflect the collapsed state [<xref ref-type="bibr" rid="scirp.109835-ref14">14</xref>]. Despite the widespread success of error mitigation strategies most methods do not directly focus on the effect of imperfect control hardware, which motivates the approach we take in this work.</p><p>Here we present a remarkably simple technique to mitigate the effect of over-rotations in short-depth quantum circuits. The method is based on first running diagnostic circuits which quantify the error. Then, using the quantified error the experimenter can run a modified circuit of interest to mitigate the effect of the over-rotation. We show that simple approaches, such as that presented, here can still offer an experimental advantage when implemented in real quantum hardware.</p><p>First, we introduce the mathematical description of several basic single qubit. Then we show how over-rotations can be characterised and their effects mitigated. This is followed by a simple experimental demonstration of our method where we measure the CHSH inequalities in real quantum hardware using the IBM cloud quantum computing service. Finally, we present a discussion of our method and the results obtained as well as future directions.</p><p>A single qubit pure state can be represented as:</p><p>| ψ 〉 = cos ( θ 2 ) | 0 〉 + e i ϕ sin ( θ 2 ) | 1 〉 . (1)</p><p>which can be visualized as a point on the Bloch sphere at polar angle θ and azimuthal angle ϕ .</p><p>During computation, a given number of one and two qubit gates are performed on a set of qubits. In the zero-noise limit this has the effect of changing the state by some unitary operation U. Any unitary is decomposed into the physical gate set of the device, S . When implemented in the IBMQ quantum computer this set is given by S = { U 1 ( ω ) , R x ( &#177; π / 2 ) , C X } , where ω is any angle. The gate U 1 ( ω ) is equivalent to R z ( ω ) up to a global phase factor and is implemented virtually within IBMQ. This is achieved by using frame changes with near-perfect execution [<xref ref-type="bibr" rid="scirp.109835-ref15">15</xref>] which does not involve the action of any physical quantum gates. A general single qubit unitary</p><p>U 3 ( θ , ϕ , λ ) = ( cos ( θ / 2 ) − e i λ sin ( θ / 2 ) e i ϕ sin ( θ / 2 ) e i ( λ + ϕ ) cos ( θ / 2 ) ) , (2)</p><p>can be decomposed as follows:</p><p>U 3 ( θ , ϕ , λ ) = R z ( ϕ ) R x ​ ( − π 2 ) R z ( θ ) R x ​ ( π 2 ) R z ( λ ) , (3)</p><p>where the R z gates are implemented virtually (VZ), and the R x ( &#177; π / 2 ) by a pulse [<xref ref-type="bibr" rid="scirp.109835-ref16">16</xref>].</p><p>Once execution of the required gates is complete, the quantum computer measures the qubits, collapsing the state, and outputs the results. The computation is repeated and a vector of counts v → e x p , length 2<sup>n</sup> (where n is the number of qubits), is obtained. Relaxation, imperfect coupling of the readout resonator and signal amplification lead to errors in the measurement process [<xref ref-type="bibr" rid="scirp.109835-ref14">14</xref>]. Although major improvements in this area are likely to come from improved hardware, it is possible to mitigate the measurement error through various techniques [<xref ref-type="bibr" rid="scirp.109835-ref17">17</xref>]. A simple strategy currently implemented within IBM’s Qiskit software [<xref ref-type="bibr" rid="scirp.109835-ref18">18</xref>] uses data from calibration circuits to mitigate the error using classical post-processing. This is achieved using the direct construction of a calibration matrix which for one qubit can be written as:</p><p>M c a l = ( p 0 1 − p 1 1 − p 0 p 1 ) , (4)</p><p>where p 0 and p 1 are the probabilities that a prepared | 0 〉 is measured as | 0 〉 and a prepared state | 1 〉 is measured as | 1 〉 respectively. This technique can be extended to multi-qubit states using a tensor product or correlated Markov noise approaches [<xref ref-type="bibr" rid="scirp.109835-ref19">19</xref>]. The calibration matrix can also be calculated using maximum likelihood techniques and quantum detector tomography [<xref ref-type="bibr" rid="scirp.109835-ref20">20</xref>].</p><p>The calibration matrix can then be used to mitigate errors associated with the readout either directly by: 1) inversion or through 2) bounded minimization.</p><p>1) Inversion is done by inverting the calibration matrix as such: M c a l − 1 v → e x p = v → t h , where v → e x p , v → t h are the experimental and ideal vectors of the counts.</p><p>2) Bounded minimization uses bounded least squares optimization: min v → t h | M c a l v → t h − v → e x p | , where bounds ensure the probabilities calculated from v → t h are positive and correctly normalised.</p><p>These techniques share the assumption that the error rate in state preparation is much lower than the readout error. This is not without merit as single gate errors cited in IBM, Google and Rigetti are all below 0.5% while their readout errors are around 1% - 5% [<xref ref-type="bibr" rid="scirp.109835-ref14">14</xref>] [<xref ref-type="bibr" rid="scirp.109835-ref16">16</xref>] [<xref ref-type="bibr" rid="scirp.109835-ref21">21</xref>]. Yet, any error in state preparation, especially systematic ones, can lead to an inaccurate calibration matrix.</p><p>In this paper we highlight a systematic error in the execution of the U<sub>3</sub> gate in IBM’s cloud-based computers, which appears as a shift in the angle θ when implementing the gate U 3 ( θ , ϕ , λ ) . We propose to mitigate the previous error using an angular shift in θ in the U<sub>3</sub> gate. We illustrate the functionality of this mitigation method by measuring the CHSH inequality on data from a real device.</p></sec><sec id="s2"><title>2. Error Characterisation</title><p>1) Sweeping a Meridian</p><p>To explore the reliability of the U<sub>3</sub> gate we applied it to the 0 state with λ = π / 2 , ϕ = − π / 2 and various angles θ in the interval [ 0, π ] (see Equation (2)).</p><p>This represents a rotation about the X axis ( R x ( θ ) ) on the Bloch sphere that sweeps a whole meridian. The gate is followed by a measurement in the Z basis</p><disp-formula id="scirp.109835-formula4"><graphic  xlink:href="//html.scirp.org/file/3-1722334x34.png"  xlink:type="simple"/></disp-formula><p>IBM’s calibration method consists in measuring the states 0 and | 1 〉 = R x ( π ) | 0 〉 , extracting the values of p 0 and p 1 to build the matrix M c a l given in (4). The experimental 0 count for any given θ ( P 0 ( θ ) ), ignoring all errors apart from readout, can be described by</p><p>P 0 ( θ ) = p 0 cos 2 θ 2 + ( 1 − p 1 ) sin 2 θ 2 . (5)</p><p>We shall refer to this formula as the IBM-fit. Observe that (5) reproduces by construction the experimental data p 0 and 1 − p 1 for θ = 0 and π respectively. To test the reliability of this formula we divide [ 0, π ] in 30 intervals and measure P 0 ( θ i ) for θ i = π i / 30 with i = 0 , 1 , ⋯ , 30 . The results obtained for the qubit 9 of the Cambridge QC, with 8192 shots per angle, are plotted in <xref ref-type="fig" rid="fig1">Figure 1</xref>(a) together with the curve (5). One can easily see a significant deviation between the experimental data and the IBM prediction. However, this deviation follows a trend that we characterize with the following ansatz</p><p>P 0 ( θ ) = p ′ 0 cos 2 θ + α 2 + ( 1 − p ′ 1 ) sin 2 θ + α 2 . (6)</p><p>Here, the angle θ is shifted by a parameter α that takes small values, as we shall see below. The probabilities p 0 and p 1 , appearing in (5), have been replaced by p ′ 0 and p ′ 1 to allow for a more accurate description of the experimental results in the range θ ∈ [ 0, π ] . The numerical values of α , p ′ 0 and p ′ 1 are determined using a least-square fit of the set { P 0 ( θ i ) } i = 0 30 using Equation (6). We shall denote this approach as the Shift-fit method. <xref ref-type="fig" rid="fig2">Figure 2</xref> shows that (6) provides a much better fit to the data than (5).</p><p>To quantify the performance of the fits we use the coefficient of determination R<sup>2</sup> that is defined as</p><p>R fit 2 = 1 − ∑ n = 0 30 ( P 0 exp ( θ n ) − P 0 fit ( θ n ) ) 2 ∑ n = 0 30 ( P 0 exp ( θ n ) − P &#175; 0 exp ) 2 (7)</p><p>where P 0 exp ( θ n ) is the experimental probability of the | 0 〉 counts at angle θ n , and P &#175; 0 exp its average. The R<sup>2</sup> estimator is customarily expressed in percentages, thus a perfect fit, implies a R fit 2 &#215; 100 = 100 % of predictibilty. The data given in <xref ref-type="fig" rid="fig2">Figure 2</xref> yield an R<sup>2</sup> equal to 97.6% for the IBM-fit and 99.9% for the Shift-fit.</p><p>2) Several Sweeps: Jobs</p><p>The results presented in <xref ref-type="fig" rid="fig1">Figure 1</xref> correspond to a single sweep of equally spaced angles θ n along a meridian.</p><p>To assess the reliability of the Shift-fit method we consider a set of n s consecutive sweeps that we denote a job. The number of sweeps n s can depend on the job (see <xref ref-type="fig" rid="fig2">Figure 2</xref>). A given job is run within a time lapse where the quantum computer is assumed to remain approximately under the same experimental conditions.</p><p>The result of each job is a set of parameters { α s , p ′ 0 , s , p ′ 1 , s } s = 1 n s , which according to the previous assumption, should be similar. <xref ref-type="fig" rid="fig3">Figure 3</xref> shows the distribution of the values of α obtained for 15 jobs, amounting to a total of 100 sweeps. We notice that: 1) within each job the parameter α takes similar values, 2) the average value of α presents large deviations between jobs, as shown in the histogram.</p><p>Item 1) is in rough agreement with the stability assumption made above, while item 2) can be attributed to different calibrations during the time delay between different jobs.</p><p>The distribution has a mean α of −0.14 (7), where the number in brackets is the standard deviation on the last digit shown. This mean does not properly reflect how α behaves within a single job, as for example the single run in <xref ref-type="fig" rid="fig1">Figure 1</xref>(a) whose α = − 0.18 .</p><p>We also find that overall the average R<sup>2</sup> for the Shift-fit and IBM fit are 99.9% and 97.0% respectively leading to the conclusion that including an α shift results in a more accurate description of the raw data in general. Finally it is worth noting that we have not found correlation between the shift observed and IBM quoted errors.</p><p>In <xref ref-type="table" rid="table1"><xref ref-type="table" rid="table">Table </xref>1</xref> we collect the results of the observed shift for a selection of qubits in the devices Paris, Johannesburg, Rochester, Cambridge and London. The chosen qubits are the ones that exhibit the highest average values of α . The largest twenty average values are provided in the supplementary material.</p><p>We have also explored other meridians with our the Shift-fit method and found a negligible dependence on the meridian. Through testing the same qubits in the same job in all the computers with ten equally spaced ϕ from 0 to 2 π we saw a no shifts greater than the standard deviation from the mean and there was no trend of increase with a change in ϕ .</p><p>3) Mitigation</p><p>As explained above, the parameter α represents a systematic error that affects the rotation angle θ of the U 3 ( θ , ϕ , λ ) gate. A naive way to mitigate it is to replace θ by θ − α , hoping that this displacement will compensate the error. The corresponding mitigated circuit is</p><disp-formula id="scirp.109835-formula5"><graphic  xlink:href="//html.scirp.org/file/3-1722334x96.png"  xlink:type="simple"/></disp-formula><table-wrap id="table1" ><label><xref ref-type="table" rid="table1"><xref ref-type="table" rid="table">Table </xref>1</xref></label><caption><title> <xref ref-type="table" rid="table">Table </xref>showing average parameters from Equation (6) fitted to data from 100 sweeps over 10 jobs from different IBM quantum computers. Only qubits with the largest shift α are displayed. The standard deviation on the last digit is shown in round brackets after the mean value</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Computer</th><th align="center" valign="middle" >Qubit</th><th align="center" valign="middle" >α</th><th align="center" valign="middle" >p ′ 0</th><th align="center" valign="middle" >p ′ 1</th></tr></thead><tr><td align="center" valign="middle" >Roch</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >0.32 (6)</td><td align="center" valign="middle" >0.83 (4)</td><td align="center" valign="middle" >0.80 (2)</td></tr><tr><td align="center" valign="middle"  rowspan="2"  >2*Johan</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >−0.26 (7)</td><td align="center" valign="middle" >0.97 (1)</td><td align="center" valign="middle" >0.95 (2)</td></tr><tr><td align="center" valign="middle" >8</td><td align="center" valign="middle" >0.12 (5)</td><td align="center" valign="middle" >0.98 (2)</td><td align="center" valign="middle" >0.96 (2)</td></tr><tr><td align="center" valign="middle" >Camb</td><td align="center" valign="middle" >9</td><td align="center" valign="middle" >−0.14 (7)</td><td align="center" valign="middle" >0.82 (2)</td><td align="center" valign="middle" >0.81 (2)</td></tr><tr><td align="center" valign="middle" >Lond</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >−0.12 (5)</td><td align="center" valign="middle" >0.99 (1)</td><td align="center" valign="middle" >0.91 (3)</td></tr><tr><td align="center" valign="middle" >Paris</td><td align="center" valign="middle" >5</td><td align="center" valign="middle" >−0.08 (1)</td><td align="center" valign="middle" >0.90 (1)</td><td align="center" valign="middle" >0.89 (2)</td></tr></tbody></table></table-wrap><p>To implement the α mitigation a python software suite was written to perform these calibrations and implement the shift on subsequent experiments [<xref ref-type="bibr" rid="scirp.109835-ref22">22</xref>].</p><p><xref ref-type="fig" rid="fig4">Figure 4</xref> shows a selection of results. The values of α , obtained with this type of mitigated circuit are much closer to zero that those obtained without the shift. The calibration and mitigated rotation were performed with a job with 10 sweeps. The R<sup>2</sup> values for the Shift-fit were above 99% in all cases. These results assess the effect of the mitigation method.</p><p>4) Repeated Gates and Different Initial States</p><p>We now explore the dependence of the α shift with the number of gates applied in a consecutive sequence. To this end we decompose a rotation R x ( θ ) into M rotations of angle θ / M , as shown in the circuit of <xref ref-type="fig" rid="fig5">Figure 5</xref>. The results for M = 1 , ⋯ , 10 are given in <xref ref-type="fig" rid="fig6">Figure 6</xref>. We find that | α M | increases with M, but not linearly as one would naively expect, that is α M ≃ M α 1 . All the tested computers returned different trends, and they changed between jobs even for the same computer. Sometimes a negative α would go closer to zero or further from zero and a positive α would sometimes grow or decrease. This fact suggests that the systematic error expressed by α has a complex origin that probably involves several components of the machine.</p><p>We have also studied sweeps starting, not from | 0 〉 , but from the states obtained acting on | 0 〉 with R x ( π / 4 ) , R x ( π / 2 ) and R x ( 3 π / 4 ) . The results plotted in <xref ref-type="fig" rid="fig7">Figure 7</xref>, show a rough agreement of the values of α . This suggests the result is not strongly state dependent.</p></sec><sec id="s3"><title>3. Origin of the Error</title><p>In this section we propose an explanation of the shift-fit effect based on a potential error in the implementation of the gates R x ( &#177; π / 2 ) . In the ideal case these gates are realized as e ∓ i t Ω / 2 σ X , where Ω is the pulse amplitude and Ω t = π / 2 . An off resonance error (ORR) in the R x gate pulse can be modeled as follows [<xref ref-type="bibr" rid="scirp.109835-ref15">15</xref>]:</p><p>R x ( &#177; π / 2 , δ ) = exp [ i π 4 ( ∓ σ X + δ σ Z ) ] = ( cos π d 4 − i δ d sin π d 4 ∓ i d sin π d 4 ∓ i d sin π d 4 cos π d 4 + i δ d sin π d 4 ) (8)</p><p>where d = 1 + δ 2 . Replacing these gates into (3) we obtain a gate U 3 ( θ , − π 2 , π 2 , δ ) that includes the ORR error. Finally, we apply the calibration matrix M c a l , to obtain the probability of measuring the | 0 〉 state for various angles θ</p><p>P 0 ORR ( θ , δ ) = 1 + p 0 − p 1 2 + p 0 + p 1 − 1 2 [ ( 1 − 2 δ 2 ) cos θ − 2 δ sin θ ] + O ( δ 3 ) , (9)</p><p>where we have assumed that δ is a small parameter. Starting from Equation (6) and expanding in powers of α gives</p><p>P 0 shift ( θ , δ ) = 1 + p 0 − p 1 2 + p 0 + p 1 − 1 2 [ ( 1 − α 2 2 ) cos θ − α sin θ ] + O ( α 3 ) . (10)</p><p>These two expressions are equivalent up to O ( δ 3 ) assuming α = 2 δ and the using the same calibration matrix. This means that the VZ gates can indeed be used to correct for this by replacing the θ parameter in Equation (3) with θ − α , which is equivalent to altering the θ in the U<sub>3</sub> gate.</p><p>It appears that the shift observed is well described by the appearance of ORR errors in the R x gates. However, upon multiple action of these gates, one would expect the errors to accumulate, resulting in a shift that grows proportionally with the number of applied gates. As previously demonstrated, this is not observed (see <xref ref-type="fig" rid="fig6">Figure 6</xref>).</p><p>We shall show that despite the previous complications, the α mitigation improves observed CHSH inequalities, suggesting the simple mitigation strategy we present could be useful in short-depth circuits.</p></sec><sec id="s4"><title>4. Evaluating the CHSH Inequality</title><p>The CHSH inequality involves running 4 separate circuits which each consist of a Bell state preparation followed by measurements in four appropriately chosen bases (<xref ref-type="fig" rid="fig8">Figure 8</xref>). It is a quintessential experiment in quantum mechanics demonstrating that quantum correlations cannot be explained classically [<xref ref-type="bibr" rid="scirp.109835-ref23">23</xref>]. The correlation function can be expressed as follows:</p><table-wrap id="table2" ><label><xref ref-type="table" rid="table">Table </xref>2</label><caption><title> Shift values and correlation functions showing raw and α mitigated implementations of the CHSH inequality circuits for 819,200 shots per basis. Qubits with local connectivity were chosen to minimize the depth of the circuits necessary. The calibration of α was calculated with 10 repetitions. In all cases where there is a significant shift we see either a statistical improvement in the measured value for C</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Computer</th><th align="center" valign="middle" >Qubits</th><th align="center" valign="middle" >α 0</th><th align="center" valign="middle" >α 1</th><th align="center" valign="middle" >C r a w</th><th align="center" valign="middle" >C c o r r</th></tr></thead><tr><td align="center" valign="middle" >Johan</td><td align="center" valign="middle" >6, 7</td><td align="center" valign="middle" >0.052 (7)</td><td align="center" valign="middle" >−0.072 (7)</td><td align="center" valign="middle" >2.52 (2)</td><td align="center" valign="middle" >2.62 (2)</td></tr><tr><td align="center" valign="middle" >Lond</td><td align="center" valign="middle" >1, 3</td><td align="center" valign="middle" >−0.02 (1)</td><td align="center" valign="middle" >−0.04 (1)</td><td align="center" valign="middle" >2.21 (2)</td><td align="center" valign="middle" >2.26 (2)</td></tr><tr><td align="center" valign="middle" >Lond</td><td align="center" valign="middle" >1, 2</td><td align="center" valign="middle" >0.23 (1)</td><td align="center" valign="middle" >0.12 (7)</td><td align="center" valign="middle" >2.24 (2)</td><td align="center" valign="middle" >2.46 (2)</td></tr><tr><td align="center" valign="middle" >Roch</td><td align="center" valign="middle" >3, 4</td><td align="center" valign="middle" >−0.07 (1)</td><td align="center" valign="middle" >−0.012 (7)</td><td align="center" valign="middle" >2.22 (4)</td><td align="center" valign="middle" >2.26 (5)</td></tr><tr><td align="center" valign="middle" >Roch</td><td align="center" valign="middle" >44, 51</td><td align="center" valign="middle" >0.032 (5)</td><td align="center" valign="middle" >−0.026 (4)</td><td align="center" valign="middle" >1.5 (1)</td><td align="center" valign="middle" >1.82 (8)</td></tr><tr><td align="center" valign="middle" >Roch</td><td align="center" valign="middle" >48, 52</td><td align="center" valign="middle" >0.006 (3)</td><td align="center" valign="middle" >−0.05 (1)</td><td align="center" valign="middle" >1.23 (3)</td><td align="center" valign="middle" >1.25 (3)</td></tr><tr><td align="center" valign="middle" >Paris</td><td align="center" valign="middle" >8, 9</td><td align="center" valign="middle" >0.007 (7)</td><td align="center" valign="middle" >0.012 (2)</td><td align="center" valign="middle" >2.51 (2)</td><td align="center" valign="middle" >2.51 (2)</td></tr><tr><td align="center" valign="middle" >Camb</td><td align="center" valign="middle" >9, 10</td><td align="center" valign="middle" >−0.02 (1)</td><td align="center" valign="middle" >0.011 (5)</td><td align="center" valign="middle" >2.06 (1)</td><td align="center" valign="middle" >2.085 (9)</td></tr></tbody></table></table-wrap><p>C = 〈 A B 〉 + 〈 A B ′ 〉 + 〈 A ′ B 〉 − 〈 A ′ B ′ 〉 (11)</p><p>where 4 system observables are shown as A , A ′ and B , B ′ , these letters simply represent different measurement bases of the bipartite system comprising of A and B. 〈 A B 〉 is the correlated expectation for two of those observables. For a system with a hidden variable or classical correlations, | C | is bounded at 2. For a system with maximal entanglement, this bound is 2 2 [<xref ref-type="bibr" rid="scirp.109835-ref24">24</xref>].</p><p>In general the measured mitigated correlations are closer to the theoretical limit as in <xref ref-type="table" rid="table">Table </xref>2, with the least improved cases appearing when α is very small in one or both qubits. Therefore, using a simple mitigation strategy can improve measured quantities in a real device.</p><p>How this improvement scales with depth and number of qubits in the circuit is an important consideration. We have shown the shift effect does not appear to be consistent with increasing depth as seen in 6. However, when increasing the system size a set of calibration circuits could be run on each qubit to determine the α shift whose effect could then be mitigated as outlined above.</p></sec><sec id="s5"><title>5. Discussion and Conclusions</title><p>In this paper, we have highlighted the existence of a systematic error, which appears as an angular shift ( α ) in the parameter θ of the U<sub>3</sub> gate, and demonstrated its effects can be mitigated by performing a simple calibration before running a set of jobs. This shift was shown to bare characteristics of an ORR error. Therefore, it is now possible to mitigate this component of the total error irrespective of the readout error and other errors. This leads to an increased performance on our benchmark circuits to calculate the CHSH inequality. We found that the systematic shifts are consistent over the time span of a few successive jobs, but not over larger stretches of time.</p><p>As the ORR error can be corrected through the use of VZ gates, the change in the θ parameter of the U<sub>3</sub> gate does just this [<xref ref-type="bibr" rid="scirp.109835-ref15">15</xref>]. Although using the “open pulse” capabilities of some IBMQ quantum computers and finely tuning the R x pulses would result in similar improvements, this is a more complicated procedure and may not completely remove the ORR effect.</p><p>We have also shown that although these errors can be corrected for single gates, the application of multiple gates to a single qubit does not follow the expected relation from the ORR treatment which implies a linear growth in the shift with multiple gates. This remains an open question on whether the gates are state-dependent or if other errors come into play once the qubit is not in the ground state and further investigation is left to future work. Despite this, applying this correction still yielded improved results in the CHSH inequalities.</p><p>Any simple mitigation strategy can only improve the fidelity of calculations by a small factor. Yet, a modest increase in fidelity for a small upfront computation may be worth the extra time. Although this method could not be applied to deep circuits we envision it could be useful for many qubit, short-depth quantum circuits, especially if combined with other mitigation techniques.</p></sec><sec id="s6"><title>Acknowledgements</title><p>We would like to thank Diego Garca-Martn and Pol Forn for conversations. We also thank the IBM Quantum team for making multiple devices available via the IBM Quantum Experience. The access to the IBM Quantum Experience has been provided by the CSIC IBM Q Hub. We acknowledge support from La Caixa Foundation (DB, MHG), European Union’s Horizon 2020 research and innovation programme under the Marie Skodowska-Curie grant agreement No. 71367 (DB). MHG is supported by “la Caixa” Foundation (ID: 100010434), Grant No. LCF/BQ/DI19/11730056. This work has also been financed by the Spanish grants PGC2018-095862-B-C21, QUITEMAD + S2013/ICE-2801, SEV-2016-0597 of the “Centro de Excelencia Severo Ochoa” Programme and the CSIC Research Platform on Quantum Technologies PTI-001.</p></sec><sec id="s7"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s8"><title>Cite this paper</title><p>Bultrini, D., Gordon, M.H., L&#243;pez, E. and Sierra, G. (2021) Simple Mitigation Strategy for a Systematic Gate Error in IBMQ. Journal of Applied Mathematics and Physics, 9, 1215-1229. https://doi.org/10.4236/jamp.2021.96083</p></sec><sec id="s9"><title>Supplementary Material</title><p>1) Coefficient of determination, R<sup>2</sup></p><p>The coefficient of determination, R<sup>2</sup>, is defined as</p><p>R 2 = 1 − S S res S S tot (12)</p><p>where the total sum of squares S S tot and total sum of residuals S S res are</p><p>S S tot = ∑ i ( y i − y &#175; ) 2 (13)</p><p>S S res = ∑ i ( y i − f i ) 2 , (14)</p><p>with y i being a particular data point, f i being the prediction of y i and y &#175; the average of the observed data. If R 2 = 1 , the fit is an exact match to the experimental data while anything lower implies a progressively worse fit.</p><p>In total the statistics of the goodness of fit of our proposed shift with respect to IBM and the ideal curve (setting p 0 = p 1 = 1 and α = 0 ) are tabulated below for an aggregate of all of the sweeps over all computers.</p><p>Furthermore the way that we ascertained that there was no correlation between the alpha values and the cited IBM error rate is that we ordered the size of the errors for a given computer’s qubits by magnitude and compared it to the magnitude of α associated with a given error rate’s job and there was no polynomial (up to order 4) which gave any appreciable R<sup>2</sup> value for any computer.</p><p>2) Largest observed shift values</p><p>The TableS1 below shows the fitted data for 20 qubits with the largest average α after 100 sweeps, with exception of Rochester at 10 sweeps due to the large number of qubits. This process was carried out on the Cambridge, London, Rochester, Paris and Johannesburg computers.</p><table-wrap-group id="3"><label><xref ref-type="table" rid="table">Table </xref>S1</label><caption><title> Largest 20 shift values found in the computers that were investigated. The parameters correspond to those shown in Equation (6). This was repeated 10 times and errors show the standard deviation, with the error in the last digit shown in brackets</title></caption><table-wrap id="3_1"><table><tbody><thead><tr><th align="center" valign="middle" >Computer</th><th align="center" valign="middle" >Qubit</th><th align="center" valign="middle" >α</th><th align="center" valign="middle" >p 0</th><th align="center" valign="middle" >p 1</th></tr></thead><tr><td align="center" valign="middle" >Roch</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >0.32 (6)</td><td align="center" valign="middle" >0.83 (4)</td><td align="center" valign="middle" >0.80 (3)</td></tr><tr><td align="center" valign="middle" >Roch</td><td align="center" valign="middle" >51</td><td align="center" valign="middle" >−0.29 (3)</td><td align="center" valign="middle" >0.80 (1)</td><td align="center" valign="middle" >0.72 (4)</td></tr><tr><td align="center" valign="middle" >Johan</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >−0.26 (7)</td><td align="center" valign="middle" >0.97 (1)</td><td align="center" valign="middle" >0.95 (2)</td></tr><tr><td align="center" valign="middle" >Roch</td><td align="center" valign="middle" >52</td><td align="center" valign="middle" >−0.19 (2)</td><td align="center" valign="middle" >0.88 (1)</td><td align="center" valign="middle" >0.81 (4)</td></tr></tbody></table></table-wrap><table-wrap id="3_2"><table><tbody><thead><tr><th align="center" valign="middle" >Roch</th><th align="center" valign="middle" >30</th><th align="center" valign="middle" >0.16 (2)</th><th align="center" valign="middle" >0.85 (2)</th><th align="center" valign="middle" >0.87 (3)</th></tr></thead><tr><td align="center" valign="middle" >Camb</td><td align="center" valign="middle" >9</td><td align="center" valign="middle" >−0.14 (7)</td><td align="center" valign="middle" >0.82 (2)</td><td align="center" valign="middle" >0.81 (2)</td></tr><tr><td align="center" valign="middle" >Roch</td><td align="center" valign="middle" >35</td><td align="center" valign="middle" >−0.13 (2)</td><td align="center" valign="middle" >0.85 (1)</td><td align="center" valign="middle" >0.85 (3)</td></tr><tr><td align="center" valign="middle" >Roch</td><td align="center" valign="middle" >8</td><td align="center" valign="middle" >0.13 (2)</td><td align="center" valign="middle" >0.91 (1)</td><td align="center" valign="middle" >0.89 (3)</td></tr><tr><td align="center" valign="middle" >Roch</td><td align="center" valign="middle" >12</td><td align="center" valign="middle" >0.13 (1)</td><td align="center" valign="middle" >0.89 (1)</td><td align="center" valign="middle" >0.89 (3)</td></tr><tr><td align="center" valign="middle" >Roch</td><td align="center" valign="middle" >13</td><td align="center" valign="middle" >0.12 (6)</td><td align="center" valign="middle" >0.66 (2)</td><td align="center" valign="middle" >0.65 (5)</td></tr><tr><td align="center" valign="middle" >Lond</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >−0.12 (5)</td><td align="center" valign="middle" >0.99 (1)</td><td align="center" valign="middle" >0.91 (3)</td></tr><tr><td align="center" valign="middle" >Roch</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >−0.11 (2)</td><td align="center" valign="middle" >0.88 (1)</td><td align="center" valign="middle" >0.86 (3)</td></tr><tr><td align="center" valign="middle" >Johan</td><td align="center" valign="middle" >8</td><td align="center" valign="middle" >0.11 (1)</td><td align="center" valign="middle" >0.98 (1)</td><td align="center" valign="middle" >0.96 (2)</td></tr><tr><td align="center" valign="middle" >Johan</td><td align="center" valign="middle" >10</td><td align="center" valign="middle" >0.11 (1)</td><td align="center" valign="middle" >0.96 (1)</td><td align="center" valign="middle" >0.94 (2)</td></tr><tr><td align="center" valign="middle" >Johan</td><td align="center" valign="middle" >9</td><td align="center" valign="middle" >−0.10 (1)</td><td align="center" valign="middle" >0.96 (1)</td><td align="center" valign="middle" >0.94 (2)</td></tr><tr><td align="center" valign="middle" >Roch</td><td align="center" valign="middle" >41</td><td align="center" valign="middle" >0.10 (1)</td><td align="center" valign="middle" >0.97 (1)</td><td align="center" valign="middle" >0.93 (2)</td></tr><tr><td align="center" valign="middle" >Johan</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >−0.10 (1)</td><td align="center" valign="middle" >0.96 (1)</td><td align="center" valign="middle" >0.96 (2)</td></tr><tr><td align="center" valign="middle" >Roch</td><td align="center" valign="middle" >23</td><td align="center" valign="middle" >0.10 (2)</td><td align="center" valign="middle" >0.87 (2)</td><td align="center" valign="middle" >0.84 (3)</td></tr><tr><td align="center" valign="middle" >Johan</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0.09 (1)</td><td align="center" valign="middle" >0.94 (1)</td><td align="center" valign="middle" >0.92 (2)</td></tr><tr><td align="center" valign="middle" >Roch</td><td align="center" valign="middle" >27</td><td align="center" valign="middle" >−0.09 (2)</td><td align="center" valign="middle" >0.89 (1)</td><td align="center" valign="middle" >0.92 (3)</td></tr><tr><td align="center" valign="middle" >Johan</td><td align="center" valign="middle" >7</td><td align="center" valign="middle" >−0.09 (1)</td><td align="center" valign="middle" >0.98 (1)</td><td align="center" valign="middle" >0.96 (2)</td></tr></tbody></table></table-wrap></table-wrap-group></sec></body><back><ref-list><title>References</title><ref id="scirp.109835-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Campagne-Ibarcq, P., Eickbusch, A., Touzard, S., Zalys-Geller, E., Frattini, N.E., Sivak, V.V., et al. (2020) Quantum Error Correction of a Qubit Encoded in Grid States of an Oscillator. Nature, 584, 368-372. https://doi.org/10.1038/s41586-020-2603-3</mixed-citation></ref><ref id="scirp.109835-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Waldherr, G., Wang, Y., Zaiser, S., Jamali, M., Schulte-Herbrüggen, T., Abe, H., Ohshima, T., Isoya, J., Du, J.F., Neumann, P. and Wrachtrup, J. (2014) Quantum Error Correction in a Solid-State Hybrid Spin Register. Nature, 506, 204-207.https://doi.org/10.1038/nature12919</mixed-citation></ref><ref id="scirp.109835-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Kelly, J., Barends, R., Fowler, A. G., Megrant, A., Jeffrey, E., White, T.C., et al. (2015) State Preservation by Repetitive Error Detection in a Superconducting Quantum Circuit. Nature, 519, 66-69. https://doi.org/10.1038/nature14270</mixed-citation></ref><ref id="scirp.109835-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Cramer, J., Kalb, N., Rol, M.A., Hensen, B., Blok, M.S., Markham, M., Twitchen, D.J., Hanson, R. and Taminiau, T.H. (2016) Repeated Quantum Error Correction on a Continuously Encoded Qubit by Real-Time Feedback. Nature Communications, 7, Article No. 11526. https://doi.org/10.1038/ncomms11526</mixed-citation></ref><ref id="scirp.109835-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Preskill, J. (2018) Quantum Computing in the NISQ Era and Beyond. Quantum, 2, Article No. 79. https://doi.org/10.22331/q-2018-08-06-79</mixed-citation></ref><ref id="scirp.109835-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Cincio, L., Suba&amp;#351;&amp;#305;, Y., Sornborger, A.T. and Coles, P.J. (2018) Learning the Quantum Algorithm for State Overlap. New Journal of Physics, 20, Article ID: 113022.https://doi.org/10.1088/1367-2630/aae94a</mixed-citation></ref><ref id="scirp.109835-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Murali, P., Baker, J.M., Javadi-Abhari, A., Chong, F.T. and Martonosi, M. (2019) Noise-Adaptive Compiler Mappings for Noisy Intermediate-Scale Quantum Computers. Proceedings of the 24th International Conference on Architectural Support for Programming Languages and Operating Systems, Providence, April 2019, 1015-1029. https://doi.org/10.1145/3297858.3304075</mixed-citation></ref><ref id="scirp.109835-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Cincio, L., Rudinger, K., Sarovar, M. and Coles, P.J. (2020) Machine Learning of Noise-Resilient Quantum Circuits. PRX Quantum, 2, Article ID: 010324.https://doi.org/10.1103/PRXQuantum.2.010324</mixed-citation></ref><ref id="scirp.109835-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Temme, K., Bravyi, S. and Gambetta, J.M. (2017) Error Mitigation for Short-Depth Quantum Circuits. Physical Review Letters, 119, Article ID: 180509.https://doi.org/10.1103/PhysRevLett.119.180509</mixed-citation></ref><ref id="scirp.109835-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Dumitrescu, E.F., McCaskey, A.J., Hagen, G., Jansen, G.R., Morris, T.D., Papenbrock, T., Pooser, R.C., Dean, D.J. and Lougovski, P. (2018) Cloud Quantum Computing of an Atomic Nucleus. Physical Review Letters, 120, Article ID: 210501. https://doi.org/10.1103/PhysRevLett.120.210501</mixed-citation></ref><ref id="scirp.109835-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">He, A., Nachman, B., de Jong, W.A. and Bauer, C.W. (2020) Zero-Noise Extrapolation for Quantum-Gate Error Mitigation with Identity Insertions. Physical Review A, 102, Article ID: 012426. https://doi.org/10.1103/PhysRevA.102.012426</mixed-citation></ref><ref id="scirp.109835-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Strikis, A., Qin, D., Chen, Y., Benjamin, S.C. and Li, Y. (2020) Learning-Based Quantum Error Mitigation. arXiv: 2005.07601 [quant-ph].</mixed-citation></ref><ref id="scirp.109835-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Czarnik, P., Arrasmith, A., Coles, P.J. and Cincio, L. (2020) Error Mitigation with Clifford Quantum-Circuit Data. arXiv: 2005.10189 [quant-ph].</mixed-citation></ref><ref id="scirp.109835-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Kjaergaard, M., Schwartz, M.E., Braumüller, J., Krantz, P., Wang, J.I.-J., Gustavsson, S. and Oliver, W.D. (2020) Superconducting Qubits: Current State of Play. Annual Review of Condensed Matter Physics, 11, 369-395. https://doi.org/10.1146/annurev-conmatphys-031119-050605</mixed-citation></ref><ref id="scirp.109835-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">McKay, D.C., Wood, C.J., Sheldon, S., Chow, J.M. and Gambetta, J.M. (2017) Efficient Z Gates for Quantum Computing. Physical Review A, 96, Article ID: 022330.https://doi.org/10.1103/PhysRevA.96.022330</mixed-citation></ref><ref id="scirp.109835-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Abraham, H., Akhalwaya, I.Y., Aleksandrowicz, G., Alexander, T., Alexandrowics, G., Arbel, E., Asfaw, A., et al. (2019) Qiskit: An Open-source Framework for Quantum Computing (Version 0.7.2). Zenodo. http://doi.org/10.5281/zenodo.2562111</mixed-citation></ref><ref id="scirp.109835-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Maciejewski, F.B., Zimboras, Z. and Oszmaniec, M. (2020) Mitigation of Readout Noise in Near-Term Quantum Devices by Classical Post-Processing Based on Detector Tomography. Quantum, 4, 257. https://doi.org/10.22331/q-2020-04-24-257</mixed-citation></ref><ref id="scirp.109835-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Team, I.Q. (2019) Qiskit Tutorials: Measurement Error Mitigation.</mixed-citation></ref><ref id="scirp.109835-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">Bravyi, S., Sheldon, S., Kandala, A., Mckay, D.C. and Gambetta, J.M. (2020) Mitigating Measurement Errors in Multiqubit Experiments. Physical Review A, 103, Article ID: 042605. https://doi.org/10.1103/PhysRevA.103.042605</mixed-citation></ref><ref id="scirp.109835-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Chen, Y., Farahzad, M., Yoo, S. and Wei, T.-C. (2019) Detector Tomography on IBM Quantum Computers and Mitigation of an Imperfect Measurement. Physical Review A, 100, Article ID: 052315. https://doi.org/10.1103/PhysRevA.100.052315</mixed-citation></ref><ref id="scirp.109835-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">Rigetti Computing. https://rigetti.com/</mixed-citation></ref><ref id="scirp.109835-ref22"><label>22</label><mixed-citation publication-type="other" xlink:type="simple">(2020) Alice and Bob.https://gitlab.ift.uam-csic.es/danielbultrini/AB</mixed-citation></ref><ref id="scirp.109835-ref23"><label>23</label><mixed-citation publication-type="other" xlink:type="simple">Clauser, J.F., Horne, M.A., Shimony, A. and Holt, R.A. (1969) Proposed Experiment to Test Local Hidden-Variable Theories. Physical Review Letters, 23, Article No. 880. https://doi.org/10.1103/PhysRevLett.23.880</mixed-citation></ref><ref id="scirp.109835-ref24"><label>24</label><mixed-citation publication-type="other" xlink:type="simple">Cirel’son, B.S. (1980) Quantum Generalizations of Bell’s Inequality. Letters in Mathematical Physics, 4, 93-100. https://doi.org/10.1007/BF00417500</mixed-citation></ref></ref-list></back></article>