BasicGates kata: Use R1 rather than Rz in reference solution (#146)
R1 matches the requirements exactly, Rz - up to a global phase.
This commit is contained in:
Родитель
e56d74ea41
Коммит
bce8cb2706
|
@ -78,7 +78,7 @@ namespace Quantum.Kata.BasicGates {
|
|||
// If the qubit is in state |1⟩, change its state to exp(i*alpha)|1⟩.
|
||||
// If the qubit is in superposition, change its state according to the effect on basis vectors.
|
||||
operation PhaseChange_Reference (alpha : Double, q : Qubit) : Unit is Adj {
|
||||
Rz(alpha, q);
|
||||
R1(alpha, q);
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче