qml.I¶
-
I
¶ The Identity operator
The expectation of this observable
\[E[\I] = \text{Tr}(\I \rho)\]See also
The equivalent long-form alias
Identity
- Parameters
wires (Iterable[Any] or Any) – Wire label(s) that the identity acts on.
id (str) – custom label given to an operator instance, can be useful for some applications where the instance has to be identified.
Corresponds to the trace of the quantum state, which in exact simulators should always be equal to 1.
alias of
pennylane.ops.identity.Identity
code/api/pennylane.I
Download Python script
Download Notebook
View on GitHub