StabilizerTable.insert

StabilizerTable.insert(ind, value, qubit=False)[source]

Insert stabilizers’s into the table.

When inserting qubit columns, qubit-0 is the right-most (largest index) column, and qubit-(N-1) is the left-most (0 index) column of the underlying X and Z arrays.

Parameters
  • ind (int) – index to insert at.

  • value (StabilizerTable) – values to insert.

  • qubit (bool) – if True delete qubit columns, otherwise delete Pauli rows (Default: False).

Returns

the resulting table with the entries inserted.

Return type

StabilizerTable

Raises

QiskitError – if the insertion index is invalid.