class documentation

Add photon loss noise model to a circuit during transpiler transformation pass.

Method __init__ Initialize the Photon Loss noise pass
Method applies_to_instruction Test if this PhotonLossNoisePass applies to the given instruction based on its name and qumodes (qubits)
Method duration_to_sec Return the given Instruction's duration in seconds
Instance Variable photon_loss_rates_sec Undocumented
Method _photon_loss_error Return photon loss error on each operand qubit
Instance Variable _circuit Undocumented
Instance Variable _dt Undocumented
Instance Variable _instructions Undocumented
Instance Variable _num_qumodes Undocumented
Instance Variable _photon_loss_rates Undocumented
Instance Variable _qumode_qubit_indices Undocumented
Instance Variable _qumodes Undocumented
Instance Variable _time_unit 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
photon_loss_rates:Sequence[float]Undocumented
circuit:CVCircuitcq2a.CVCircuit with ops for N and a, and cutoff
instructions:str or list[str]the instructions error applies to
qumodes:Sequence[Qubit]Undocumented
time_unit:stringstring photon loss rate unit of time (default "s" for seconds)
dt:floatoptional conversion factor for photon_loss_rate and operation duration to seconds
photon_loss_rate:floatkappa, the rate of photon loss per second
qumode:Sequence[Qubit]qumode qubits error noise pass applies to
def applies_to_instruction(self, op: Instruction, qubits: Sequence[int]): (source)

Test if this PhotonLossNoisePass applies to the given instruction based on its name and qumodes (qubits)

def duration_to_sec(self, op: Instruction): (source)

Return the given Instruction's duration in seconds

photon_loss_rates_sec = (source)

Undocumented

def _photon_loss_error(self, op: Instruction, qubits: Sequence[int]): (source)

Return photon loss error on each operand qubit

_circuit = (source)

Undocumented

Undocumented

_instructions = (source)

Undocumented

_num_qumodes: int = (source)

Undocumented

_photon_loss_rates = (source)

Undocumented

_qumode_qubit_indices = (source)

Undocumented

_qumodes = (source)

Undocumented

_time_unit = (source)

Undocumented