qiskit.circuit.QuantumCircuit.set_superop¶
-
QuantumCircuit.
set_superop
(state)¶ Set the superop state of the simulator.
- Parameters
state (QuantumChannel) – A CPTP quantum channel.
- Returns
with attached instruction.
- Return type
- Raises
ExtensionError – If the state is the incorrect size for the current circuit.
ExtensionError – if the input QuantumChannel is not CPTP.