Skip to content

Commit

Permalink
update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
sagnikpal2004 committed Dec 24, 2024
1 parent 62c2ff2 commit 45d8269
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/QSymbolicsBase/predefined.jl
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,11 @@ const Pm = const σ₋ = PauliM()
const Pp = const σ₊ = PauliP()
"""Hadamard gate"""
const H = HGate()
"""Rotation gates"""
"""Rotation X gate"""
const Rx::Float64) = RGate(:x, θ)

Check warning on line 155 in src/QSymbolicsBase/predefined.jl

View check run for this annotation

Codecov / codecov/patch

src/QSymbolicsBase/predefined.jl#L155

Added line #L155 was not covered by tests
"""Rotation Y gate"""
const Ry::Float64) = RGate(:y, θ)

Check warning on line 157 in src/QSymbolicsBase/predefined.jl

View check run for this annotation

Codecov / codecov/patch

src/QSymbolicsBase/predefined.jl#L157

Added line #L157 was not covered by tests
"""Rotation Z gate"""
const Rz::Float64) = RGate(:z, θ)

Check warning on line 159 in src/QSymbolicsBase/predefined.jl

View check run for this annotation

Codecov / codecov/patch

src/QSymbolicsBase/predefined.jl#L159

Added line #L159 was not covered by tests
"""CNOT gate"""
const CNOT = CNOTGate()
Expand Down

0 comments on commit 45d8269

Please sign in to comment.