Portuguese
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.Instruction.inverse

Instruction.inverse()[código fonte]

Invert this instruction.

If the instruction is composite (i.e. has a definition), then its definition will be recursively inverted.

Special instructions inheriting from Instruction can implement their own inverse (e.g. T and Tdg, Barrier, etc.)

Retorno

a fresh instruction for the inverse

Tipo de retorno

qiskit.circuit.Instruction

Levanta

CircuitError – if the instruction is not composite and an inverse has not been implemented for it.