qiskit.quantum_info.SuperOp.to_instruction¶
- SuperOp.to_instruction()¶
Convert to a Kraus or UnitaryGate circuit instruction.
If the channel is unitary it will be added as a unitary gate, otherwise it will be added as a kraus simulator instruction.
- Renvoie
A kraus instruction for the channel.
- Type renvoyé
- Lève
QiskitError – if input data is not an N-qubit CPTP quantum channel.