set_stabilizer#

set_stabilizer(self, state)[source]#

Set the Clifford stabilizer state of the simulator.

Parameters:

state (Clifford) – A clifford operator.

Returns:

with attached instruction.

Return type:

QuantumCircuit

Raises:

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