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
37e066d0
Commit
37e066d0
authored
Jan 29, 2019
by
Mccaskey, Alex
Browse files
adding d-wave to wheel build
Signed-off-by:
Alex McCaskey
<
mccaskeyaj@ornl.gov
>
parent
c8540a6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
docker/manylinux/Dockerfile
View file @
37e066d0
...
...
@@ -50,6 +50,18 @@ RUN export PATH=$PATH:/opt/devtools-6.2/bin \
&& /opt/_internal/cpython-3.6.4/bin/python /xacc/tools/wheels/null_rpaths.py -v repair dist/xacc_rigetti-$rigettiVersion-${python_version_str}-linux_x86_64.whl \
&& cp wheelhouse/xacc_rigetti-$rigettiVersion-${python_version_str}-manylinux1_x86_64.whl /all_wheels
RUN
export
PATH
=
$PATH
:/opt/devtools-6.2/bin
\
&&
cd
/
&&
git clone
--recursive
https://github.com/ornl-qci/xacc-dwave
&&
cd
xacc-dwave
\
&&
export
myPython
=
/opt/python/
${
python_version_str
}
/bin/python
\
&& export dwaveVersion=$($myPython -c "import os; print(open(os.path.join(os.getcwd(), 'VERSION')).read().strip())") \
&& PYTHONPATH=/xacc/build/lib.linux-x86_64-${python_version}/xacc \
$myPython setup.py build -t tmp \
&& mkdir -p build/lib.linux-x86_64-${python_version}/xacc/lib \
&& PYTHONPATH=/xacc/build/lib.linux-x86_64-${python_version}/xacc \
$myPython setup.py bdist_wheel --skip-build \
&& /opt/_internal/cpython-3.6.4/bin/python /xacc/tools/wheels/null_rpaths.py -v repair dist/xacc_dwave-$dwaveVersion-${python_version_str}-linux_x86_64.whl \
&& cp wheelhouse/xacc_dwave-$dwaveVersion-${python_version_str}-manylinux1_x86_64.whl /all_wheels
RUN
export
PATH
=
$PATH
:/opt/devtools-6.2/bin
\
&&
cd
/
&&
git clone
--recursive
https://github.com/ornl-qci/xacc-ibm
&&
cd
xacc-ibm
\
&&
export
myPython
=
/opt/python/
${
python_version_str
}
/bin/python
\
...
...
python/xacc-py.cpp
View file @
37e066d0
...
...
@@ -372,6 +372,7 @@ PYBIND11_MODULE(_pyxacc, m) {
(
ExtraInfo
(
xacc
::
AcceleratorBuffer
::*
)(
const
std
::
string
))
&
xacc
::
AcceleratorBuffer
::
getInformation
,
""
)
.
def
(
"appendChild"
,
&
xacc
::
AcceleratorBuffer
::
appendChild
,
""
)
.
def
(
"hasExtraInfoKey"
,
&
xacc
::
AcceleratorBuffer
::
hasExtraInfoKey
,
""
)
.
def
(
"name"
,
&
xacc
::
AcceleratorBuffer
::
name
,
""
)
.
def
(
"getAllUnique"
,
&
xacc
::
AcceleratorBuffer
::
getAllUnique
,
...
...
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