Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
Forward Tenet.arrays to Quantum, Ansatz
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Apr 21, 2024
1 parent 1f78374 commit 927046d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Ansatz.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ for f in [
:nlanes,
:socket,
:(Tenet.tensors),
:(Tenet.arrays),
:(Base.collect),
]
@eval $f(@nospecialize tn::Ansatz) = $f(Quantum(tn))
Expand Down
2 changes: 1 addition & 1 deletion src/Quantum.jl
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ function socket(q::Quantum)
end

# forward `TensorNetwork` methods
for f in [:(Tenet.tensors), :(Base.collect)]
for f in [:(Tenet.tensors), :(Tenet.arrays), :(Base.collect)]
@eval $f(@nospecialize tn::Quantum) = $f(TensorNetwork(tn))
end

Expand Down

0 comments on commit 927046d

Please sign in to comment.