module documentation
Undocumented
Class |
|
Add photon loss noise model to a circuit during transpiler transformation pass. |
Function | calculate |
Calculate Kraus operator given number of photons and photon loss rate over specified time. |
Function | __kraus |
Undocumented |
Function | __tensor |
Undocumented |
def calculate_kraus(photon_loss_rates:
Sequence[ float]
, time: float
, circuit: c2qa.CVCircuit
, op_qubits: Sequence[ int]
, qumode_qubit_indices: Sequence[ int]
):
(source)
¶
Calculate Kraus operator given number of photons and photon loss rate over specified time.
Apply Kraus operator to provided qubit_indices only, tensor product with identity for remaining qubits.
Following equation 44 from Bosonic Oprations and Measurements, Girvin
Parameters | |
photonSequence[float] | kappas, the rate of photon loss per second for each qumode |
time:float | current duration of time in seconds |
circuit:CVCircuit | cq2a.CVCircuit with ops for N and a |
opSequence[int] | qubit int indices in the given CVCircuit used by the current instruction |
qumodeSequence[int] | qumode int indices in the given CVCircuit to test if qubits from instruction are a part of a qumode |
Returns | |
List of Kraus operators |