Skip to content

Commit dced5d4

Browse files
committed
minor changes
1 parent d5ff284 commit dced5d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qobj/arithmetic_and_attributes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ tidyup!(A::AbstractArray{T}, tol::T2 = 1e-14) where {T,T2<:Real} =
736736
737737
Returns the data of a [`AbstractQuantumObject`](@ref).
738738
"""
739-
get_data(A::AbstractQuantumObject) = A.data
739+
get_data(A::AbstractQuantumObject) = getfield(A, :data)
740740

741741
@doc raw"""
742742
get_coherence(ψ::QuantumObject)

0 commit comments

Comments
 (0)