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
44c40c7f
Commit
44c40c7f
authored
Sep 17, 2019
by
Mccaskey, Alex
Browse files
fixing licenses in source files throughout
Signed-off-by:
Alex McCaskey
<
mccaskeyaj@ornl.gov
>
parent
20e9bc57
Pipeline
#71494
passed with stage
in 4 minutes and 41 seconds
Changes
134
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
python/CMakeLists.txt
View file @
44c40c7f
add_subdirectory
(
compiler
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Wno-deprecated-declarations"
)
include_directories
(
${
PYTHON_INCLUDE_DIR
}
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/tpls/pybind11/include
)
...
...
python/compiler/pyxasm_compiler.cpp
View file @
44c40c7f
/*******************************************************************************
* Copyright (c) 2019 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompanies this
* distribution. The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution
*License is available at https://eclipse.org/org/documents/edl-v10.php
*
* Contributors:
* Alexander J. McCaskey - initial API and implementation
*******************************************************************************/
#include
"IRProvider.hpp"
#include
"xacc.hpp"
#include
"xacc_service.hpp"
...
...
python/compiler/pyxasm_compiler.hpp
View file @
44c40c7f
/*******************************************************************************
* Copyright (c) 2019 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompanies this
* distribution. The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution
*License is available at https://eclipse.org/org/documents/edl-v10.php
*
* Contributors:
* Alexander J. McCaskey - initial API and implementation
*******************************************************************************/
#ifndef XACC_PYASMCOMPILER_HPP
#define XACC_PYXASMCOMPILER_HPP
...
...
python/compiler/pyxasm_errorlistener.hpp
View file @
44c40c7f
/*******************************************************************************
* Copyright (c) 2019 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompanies this
* distribution. The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution
*License is available at https://eclipse.org/org/documents/edl-v10.php
*
* Contributors:
* Alexander J. McCaskey - initial API and implementation
*******************************************************************************/
#ifndef XACC_PYXASMERRORLISTENER_HPP
#define XACC_PYXASMERRORLISTENER_HPP
...
...
python/compiler/pyxasm_listener.cpp
View file @
44c40c7f
/*******************************************************************************
* Copyright (c) 2019 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompanies this
* distribution. The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution
*License is available at https://eclipse.org/org/documents/edl-v10.php
*
* Contributors:
* Alexander J. McCaskey - initial API and implementation
*******************************************************************************/
#include
"IR.hpp"
#include
"IRProvider.hpp"
#include
"xacc.hpp"
...
...
python/compiler/pyxasm_listener.hpp
View file @
44c40c7f
/*******************************************************************************
* Copyright (c) 2019 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompanies this
* distribution. The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution
*License is available at https://eclipse.org/org/documents/edl-v10.php
*
* Contributors:
* Alexander J. McCaskey - initial API and implementation
*******************************************************************************/
#ifndef XACC_PYXASMLISTENER_H
#define XACC_PYXASMLISTENER_H
...
...
python/compiler/pyxasm_visitor.hpp
View file @
44c40c7f
/*******************************************************************************
* Copyright (c) 2019 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompanies this
* distribution. The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution
*License is available at https://eclipse.org/org/documents/edl-v10.php
*
* Contributors:
* Alexander J. McCaskey - initial API and implementation
*******************************************************************************/
#ifndef PYTHON_PYXACCVISITOR_HPP_
#define PYTHON_PYXACCVISITOR_HPP_
...
...
python/compiler/tests/PyXASMCompilerTester.cpp
View file @
44c40c7f
/*******************************************************************************
* Copyright (c) 2019 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompanies this
* distribution. The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution
*License is available at https://eclipse.org/org/documents/edl-v10.php
*
* Contributors:
* Alexander J. McCaskey - initial API and implementation
*******************************************************************************/
#include
"gtest/gtest.h"
#include
"xacc.hpp"
...
...
python/xacc-py.cpp
View file @
44c40c7f
...
...
@@ -442,7 +442,7 @@ PYBIND11_MODULE(_pyxacc, m) {
"Initialize the algorithm with given AlgorithmParameters."
);
py
::
class_
<
xacc
::
OptFunction
>
(
m
,
"OptFunction"
,
""
)
.
def
(
py
::
init
<
std
::
function
<
double
(
const
std
::
vector
<
double
>
&
)
>
,
.
def
(
py
::
init
<
std
::
function
<
double
(
const
std
::
vector
<
double
>
&
,
std
::
vector
<
double
>
&
)
>
,
const
int
>
());
// Expose Optimizer
...
...
quantum/annealing/ir/AnnealingProgram.cpp
View file @
44c40c7f
/*******************************************************************************
* Copyright (c) 2019 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompanies this
* distribution. The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution
*License is available at https://eclipse.org/org/documents/edl-v10.php
*
* Contributors:
* Alexander J. McCaskey - initial API and implementation
*******************************************************************************/
#include
"AnnealingProgram.hpp"
#include
"xacc_service.hpp"
...
...
quantum/examples/base_api/bell_quil_ibm_local.cpp
View file @
44c40c7f
/*******************************************************************************
* Copyright (c) 2019 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompanies this
* distribution. The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution
*License is available at https://eclipse.org/org/documents/edl-v10.php
*
* Contributors:
* Alexander J. McCaskey - initial API and implementation
*******************************************************************************/
#include
"xacc.hpp"
int
main
(
int
argc
,
char
**
argv
)
{
...
...
quantum/examples/base_api/bell_xasm_ibm_local.cpp
View file @
44c40c7f
/*******************************************************************************
* Copyright (c) 2019 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompanies this
* distribution. The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution
*License is available at https://eclipse.org/org/documents/edl-v10.php
*
* Contributors:
* Alexander J. McCaskey - initial API and implementation
*******************************************************************************/
#include
"xacc.hpp"
int
main
(
int
argc
,
char
**
argv
)
{
...
...
quantum/examples/base_api/deuteron_2qbit_ir_api_X0X1.cpp
View file @
44c40c7f
/*******************************************************************************
* Copyright (c) 2019 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompanies this
* distribution. The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution
*License is available at https://eclipse.org/org/documents/edl-v10.php
*
* Contributors:
* Alexander J. McCaskey - initial API and implementation
*******************************************************************************/
#include
"xacc.hpp"
template
<
typename
T
>
std
::
vector
<
T
>
linspace
(
T
a
,
T
b
,
size_t
N
)
{
...
...
quantum/examples/base_api/deuteron_2qbit_xasm_X0X1.cpp
View file @
44c40c7f
/*******************************************************************************
* Copyright (c) 2019 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompanies this
* distribution. The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution
*License is available at https://eclipse.org/org/documents/edl-v10.php
*
* Contributors:
* Alexander J. McCaskey - initial API and implementation
*******************************************************************************/
#include
"xacc.hpp"
template
<
typename
T
>
std
::
vector
<
T
>
linspace
(
T
a
,
T
b
,
size_t
N
)
{
...
...
quantum/examples/qasm/deuteron.cpp
View file @
44c40c7f
/*******************************************************************************
* Copyright (c) 2019 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompanies this
* distribution. The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution
*License is available at https://eclipse.org/org/documents/edl-v10.php
*
* Contributors:
* Alexander J. McCaskey - initial API and implementation
*******************************************************************************/
#include
"xacc.hpp"
#include
"Optimizer.hpp"
#include
"xacc_service.hpp"
...
...
@@ -36,7 +48,7 @@ CNOT 1 0
// Create the OptFunction to be optimized
xacc
::
OptFunction
f
(
[
&
](
const
std
::
vector
<
double
>
&
x
)
{
[
&
](
const
std
::
vector
<
double
>
&
x
,
std
::
vector
<
double
>&
dx
)
{
std
::
vector
<
double
>
coefficients
;
std
::
vector
<
std
::
string
>
kernelNames
;
std
::
vector
<
std
::
shared_ptr
<
xacc
::
CompositeInstruction
>>
fsToExec
;
...
...
quantum/examples/qasm/deuteron_vqe_algo.cpp
View file @
44c40c7f
/*******************************************************************************
* Copyright (c) 2019 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompanies this
* distribution. The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution
*License is available at https://eclipse.org/org/documents/edl-v10.php
*
* Contributors:
* Alexander J. McCaskey - initial API and implementation
*******************************************************************************/
#include
"xacc.hpp"
#include
"Optimizer.hpp"
#include
"xacc_observable.hpp"
...
...
quantum/gate/ir/Circuit.cpp
View file @
44c40c7f
/*******************************************************************************
* Copyright (c) 2019 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompanies this
* distribution. The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution
*License is available at https://eclipse.org/org/documents/edl-v10.php
*
* Contributors:
* Alexander J. McCaskey - initial API and implementation
*******************************************************************************/
#include
"Circuit.hpp"
#define RAPIDJSON_HAS_STDSTRING 1
...
...
@@ -136,7 +148,7 @@ void Circuit::load(std::istream &inStream) {
auto
signature
=
kernel
[
"accelerator_signature"
].
GetString
();
set_accelerator_signature
(
signature
);
auto
instructionsArray
=
kernel
[
"instructions"
].
GetArray
();
for
(
int
i
=
0
;
i
<
instructionsArray
.
Size
();
i
++
)
{
auto
&
inst
=
instructionsArray
[
i
];
...
...
quantum/gate/ir/Circuit.hpp
View file @
44c40c7f
/*******************************************************************************
* Copyright (c) 201
7
UT-Battelle, LLC.
* Copyright (c) 201
9
UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompanies this
...
...
quantum/gate/ir/tests/GateTester.cpp
View file @
44c40c7f
/*******************************************************************************
* Copyright (c) 2019 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompanies this
* distribution. The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution
*License is available at https://eclipse.org/org/documents/edl-v10.php
*
* Contributors:
* Alexander J. McCaskey - initial API and implementation
*******************************************************************************/
#include
<gtest/gtest.h>
#include
<stdexcept>
#include
"CommonGates.hpp"
...
...
quantum/gate/utils/IRToGraphVisitor.cpp
View file @
44c40c7f
/*******************************************************************************
* Copyright (c) 2019 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompanies this
* distribution. The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution
*License is available at https://eclipse.org/org/documents/edl-v10.php
*
* Contributors:
* Alexander J. McCaskey - initial API and implementation
*******************************************************************************/
#include
"IRToGraphVisitor.hpp"
#include
"xacc_service.hpp"
...
...
Prev
1
2
3
4
5
…
7
Next
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