mirror of https://github.com/intel/intel-qs.git
Edit files from /interface to respect the new directory structure
This commit is contained in:
parent
777f860610
commit
7223ae7280
|
@ -1,30 +1,14 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// Copyright 2017 Intel Corporation
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//------------------------------------------------------------------------------
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <unordered_map>
|
||||
#include <functional>
|
||||
#include <stdexcept>
|
||||
|
||||
#include "../qureg/qureg.hpp"
|
||||
#include "../include/qureg.hpp"
|
||||
#include "interface_api_qasm.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
// Global variables related to Psi-function .malloc/.free routines.
|
||||
using Type = ComplexDP;
|
||||
QubitRegister<Type> *psi1 = nullptr;
|
||||
|
|
|
@ -1,22 +1,7 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// Copyright 2017 Intel Corporation
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//------------------------------------------------------------------------------
|
||||
#include <iostream>
|
||||
#include <stdexcept>
|
||||
|
||||
#include "../qureg/qureg.hpp"
|
||||
#include "../include/qureg.hpp"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
|
@ -1,24 +1,9 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// Copyright 2017 Intel Corporation
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//------------------------------------------------------------------------------
|
||||
#include <iostream>
|
||||
#include <unordered_map>
|
||||
#include <functional>
|
||||
#include <stdexcept>
|
||||
|
||||
#include "../qureg/qureg.hpp"
|
||||
#include "../include/qureg.hpp"
|
||||
#include "interface_api_qubitid.h"
|
||||
#include "interface_api_version.h"
|
||||
#include "interface_api_memory.h"
|
||||
|
@ -26,11 +11,9 @@
|
|||
|
||||
using namespace std;
|
||||
|
||||
|
||||
using Type = ComplexDP;
|
||||
extern QubitRegister<Type> *psi1;
|
||||
|
||||
|
||||
// Constant defining the rotational angle of a T-dagger gate. Basically, -(pi/4).
|
||||
#define TDAG_THETA -0.785398163397448
|
||||
|
||||
|
|
|
@ -1,18 +1,3 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// Copyright 2017 Intel Corporation
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//------------------------------------------------------------------------------
|
||||
#include <unordered_map>
|
||||
#include <string>
|
||||
|
||||
|
|
|
@ -1,18 +1,3 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// Copyright 2017 Intel Corporation
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,21 +1,6 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// Copyright 2017 Intel Corporation
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//------------------------------------------------------------------------------
|
||||
#include <iostream>
|
||||
|
||||
#include "../qureg/qureg_version.hpp"
|
||||
#include "../include/qureg_version.hpp"
|
||||
#include "interface_api_version.h"
|
||||
|
||||
|
||||
|
|
|
@ -1,18 +1,3 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// Copyright 2017 Intel Corporation
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue