set_superop#

set_superop(self, state)[source]#

Set the superop state of the simulator.

Parameters:

state (QuantumChannel) – A CPTP quantum channel.

Returns:

with attached instruction.

Return type:

QuantumCircuit

Raises:
  • ValueError – If the state is the incorrect size for the current circuit.

  • ValueError – if the input QuantumChannel is not CPTP.