Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions src/providers/clifft_backend.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
# This code is part of Qiskit.
# (C) Copyright IBM 2017, 2026.
# Any modifications or derivative works of this code must retain this copyright notice.
*/

#ifndef __qiskitcpp_providers_clifft_backend_hpp__
#define __qiskitcpp_providers_clifft_backend_hpp__

#include <string>
#include <iostream>

namespace Qiskit {
namespace providers {

// Wstrzyknięta struktura bazowa, żeby odciąć błąd brakującego qiskit.h
class BackendV2 {
protected:
std::string name_;
public:
BackendV2() {}
BackendV2(std::string name) { name_ = name; }
BackendV2(BackendV2& other) { name_ = other.name_; }
virtual ~BackendV2() {}
};

class ClifftBackend : public BackendV2 {
public:
ClifftBackend() : BackendV2("clifft_backend") {}
ClifftBackend(std::string name) : BackendV2(name) {}

std::string name() const {
return name_;
}

void status() const {
std::cout << "Clifft Backend Provider Prototype Status: ACTIVE" << std::endl;
}
};

} // namespace providers
} // namespace Qiskit

#endif // __qiskitcpp_providers_clifft_backend_hpp__