Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ORNL Quantum Computing Institute
xacc
Commits
5fe22dd4
Commit
5fe22dd4
authored
May 19, 2020
by
Mccaskey, Alex
Browse files
fix clang compiler warning, merge qrack docs
Signed-off-by:
Alex McCaskey
<
mccaskeyaj@ornl.gov
>
parent
21e2236b
Pipeline
#102864
passed with stage
in 69 minutes and 11 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
quantum/observable/pauli/PauliOperator.hpp
View file @
5fe22dd4
...
...
@@ -257,7 +257,7 @@ public:
return
ret
;
}
virtual
std
::
vector
<
std
::
shared_ptr
<
Observable
>>
getNonIdentitySubTerms
()
{
std
::
vector
<
std
::
shared_ptr
<
Observable
>>
getNonIdentitySubTerms
()
override
{
std
::
vector
<
std
::
shared_ptr
<
Observable
>>
ret
;
for
(
auto
&
term
:
getTerms
())
{
if
(
term
.
first
!=
"I"
)
{
...
...
@@ -268,7 +268,7 @@ public:
return
ret
;
}
virtual
std
::
shared_ptr
<
Observable
>
getIdentitySubTerm
()
{
std
::
shared_ptr
<
Observable
>
getIdentitySubTerm
()
override
{
for
(
auto
&
term
:
getTerms
())
{
if
(
term
.
first
==
"I"
)
{
return
std
::
make_shared
<
PauliOperator
>
(
term
.
second
.
ops
(),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment