class documentation
class PhotonLossNoisePass(LocalNoisePass): (source)
Constructor: PhotonLossNoisePass(photon_loss_rates, circuit, instructions, qumodes, ...)
Add photon loss noise model to a circuit during transpiler transformation pass.
Method | __init__ |
Initialize the Photon Loss noise pass |
Method | applies |
Test if this PhotonLossNoisePass applies to the given instruction based on its name and qumodes (qubits) |
Method | duration |
Return the given Instruction's duration in seconds |
Instance Variable | photon |
Undocumented |
Method | _photon |
Return photon loss error on each operand qubit |
Instance Variable | _circuit |
Undocumented |
Instance Variable | _dt |
Undocumented |
Instance Variable | _instructions |
Undocumented |
Instance Variable | _num |
Undocumented |
Instance Variable | _photon |
Undocumented |
Instance Variable | _qumode |
Undocumented |
Instance Variable | _qumodes |
Undocumented |
Instance Variable | _time |
Undocumented |
def __init__(self, photon_loss_rates:
Sequence[ float]
, circuit: c2qa.CVCircuit
, instructions: Sequence[ str]
= None, qumodes: Sequence[ Qubit]
= None, time_unit: str
= 's', dt: float
= None):
(source)
¶
Initialize the Photon Loss noise pass
Parameters | |
photonSequence[ | Undocumented |
circuit:CVCircuit | cq2a.CVCircuit with ops for N and a, and cutoff |
instructions:str or list[str] | the instructions error applies to |
qumodes:Sequence[ | Undocumented |
timestring | string photon loss rate unit of time (default "s" for seconds) |
dt:float | optional conversion factor for photon_loss_rate and operation duration to seconds |
photonfloat | kappa, the rate of photon loss per second |
qumode:Sequence[Qubit] | qumode qubits error noise pass applies to |
Test if this PhotonLossNoisePass applies to the given instruction based on its name and qumodes (qubits)