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
xacc
Commits
369c30a5
Commit
369c30a5
authored
May 27, 2020
by
Nguyen, Thien Minh
Browse files
Fixed arguments
Signed-off-by:
Nguyen, Thien
<
nguyentm@ornl.gov
>
parent
d691f54d
Changes
1
Hide whitespace changes
Inline
Side-by-side
quantum/plugins/algorithms/qaoa/qaoa_circuit.hpp
View file @
369c30a5
...
...
@@ -21,13 +21,8 @@ namespace circuits {
class
QAOA
:
public
xacc
::
quantum
::
Circuit
{
public:
QAOA
()
:
Circuit
(
"qaoa"
)
{
//
R
untime arguments
//
Default r
untime arguments
arguments
.
push_back
(
std
::
make_shared
<
xacc
::
CompositeArgument
>
(
"qReg"
,
"qreg"
));
arguments
.
push_back
(
std
::
make_shared
<
xacc
::
CompositeArgument
>
(
"nbQubits"
,
"int"
));
arguments
.
push_back
(
std
::
make_shared
<
xacc
::
CompositeArgument
>
(
"gamma"
,
"std::vector<double>"
));
arguments
.
push_back
(
std
::
make_shared
<
xacc
::
CompositeArgument
>
(
"beta"
,
"std::vector<double>"
));
arguments
.
push_back
(
std
::
make_shared
<
xacc
::
CompositeArgument
>
(
"cost"
,
"Observable*"
));
arguments
.
push_back
(
std
::
make_shared
<
xacc
::
CompositeArgument
>
(
"ref"
,
"Observable*"
));
}
bool
expand
(
const
xacc
::
HeterogeneousMap
&
runtimeOptions
)
override
;
...
...
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