Apply1C operation
Warning
This documentation refers to the Classic QDK, which has been replaced by the Modern QDK.
Please see https://aka.ms/qdk.api for the API documentation for the Modern QDK.
Namespace: Microsoft.Quantum.Synthesis
Package: Microsoft.Quantum.Standard
Given a single-qubit Clifford operator, applies the corresponding operation to a single qubit.
operation Apply1C (op : Microsoft.Quantum.Synthesis.SingleQubitClifford, target : Qubit) : Unit is Adj + Ctl
Input
op : SingleQubitClifford
The Clifford operator to be applied.
target : Qubit
The qubit to which op
is to be applied as an operation.
Output : Unit
Example
The following are equivalent, as $ES\omega^5 = (HS^3\omega^3)S\omega^5 = HS^4\omega^8 = H$:
Apply1C(Identity1C() w/ E <- 1 w/ S <- 1 w/ Omega <- 5), q);
and
H(q);
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for