qat.quops.make_avg_fid_equiv_depol_channel
- qat.quops.make_avg_fid_equiv_depol_channel(rb_eps, nqbits, method_2q='tensor_1q_channels', depol_type='pauli')
Construct depolarizing channel whose average process fidelity \(\mathcal{F}_\mathrm{ave}\) is \(1 - \epsilon_\mathrm{RB}\).
- Parameters
rb_eps (float) – the n-qbit error rate \(\epsilon_\mathrm{RB}\) (not in percent).
nqbits (int) – the number of qubits \(n\).
method_2q (string, optional, default to 'tensor_1q_channels') – method to construct the 2-qubit depolarizing channel
depol_type (str, optional) – type of depolarizing channel, among ‘pauli’ and ‘randomizing’. Defaults to ‘pauli’.
- Returns
the channel
- Return type
Notes
See documentation of
make_depolarizing_channel()
for more information on method_2q and depol_type.Example:
from qat.quops import make_avg_fid_equiv_depol_channel depol = make_avg_fid_equiv_depol_channel(rb_eps=0.01, nqbits=1) print(depol)
Depolarizing channel, p = 0.015: [[0.99247166 0. ] [0. 0.99247166]] [[0. +0.j 0.07071068+0.j] [0.07071068+0.j 0. +0.j]] [[0.+0.j 0.-0.07071068j] [0.+0.07071068j 0.+0.j ]] [[ 0.07071068+0.j 0. +0.j] [ 0. +0.j -0.07071068+0.j]]