C2QA/bosonic-qiskit

Photon Loss Noise Pass fails with conditional gates

Closed this issue · 1 comments

The calculated Kraus operators are built for the circuit's cutoff size. If a conditional bosonic gate is used (e.g., conditional displacement or beam splitter), the operators are no longer large enough to represent all of the qubits used in the gate -- they aren't large enough for both the qumodes' qubits and the qubit control.

You end up with errors like: TranspilerError: 'Number of qubits of generated op 2 != 5 that of a reference op cBS'

I need to verify this is a valid way to address the issue, but #67 allows conditional gates to be used with our Kraus operators modeling photon loss