Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ORNL Quantum Computing Institute
qcor
Commits
ee0259d8
Commit
ee0259d8
authored
Oct 12, 2021
by
Nguyen, Thien Minh
Browse files
Fixed Clang build
Signed-off-by:
Thien Nguyen
<
nguyentm@ornl.gov
>
parent
64588684
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/mirror_rb/mirror_circuit_rb.cpp
View file @
ee0259d8
...
@@ -214,8 +214,9 @@ std::pair<bool, xacc::HeterogeneousMap> MirrorCircuitValidator::validate(
...
@@ -214,8 +214,9 @@ std::pair<bool, xacc::HeterogeneousMap> MirrorCircuitValidator::validate(
std
::
vector
<
double
>
trial_success_probs
;
std
::
vector
<
double
>
trial_success_probs
;
auto
provider
=
xacc
::
getIRProvider
(
"quantum"
);
auto
provider
=
xacc
::
getIRProvider
(
"quantum"
);
for
(
int
i
=
0
;
i
<
n_trials
;
++
i
)
{
for
(
int
i
=
0
;
i
<
n_trials
;
++
i
)
{
auto
[
mirror_circuit
,
expected_result
]
=
auto
mirror_data
=
qcor
::
MirrorCircuitValidator
::
createMirrorCircuit
(
program
);
qcor
::
MirrorCircuitValidator
::
createMirrorCircuit
(
program
);
auto
mirror_circuit
=
mirror_data
.
first
;
auto
expected_result
=
mirror_data
.
second
;
const
std
::
string
expectedBitString
=
[
&
]()
{
const
std
::
string
expectedBitString
=
[
&
]()
{
std
::
string
bitStr
;
std
::
string
bitStr
;
if
(
qpu
->
getBitOrder
()
==
xacc
::
Accelerator
::
BitOrder
::
MSB
)
{
if
(
qpu
->
getBitOrder
()
==
xacc
::
Accelerator
::
BitOrder
::
MSB
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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