From e2b5879074a90d11d6cdd7d03ccab24b46a7dee3 Mon Sep 17 00:00:00 2001 From: KowerKoint Date: Tue, 9 Jul 2024 12:28:45 +0900 Subject: [PATCH] fix compiler error --- scaluq/gate/gate_factory.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scaluq/gate/gate_factory.hpp b/scaluq/gate/gate_factory.hpp index 6c7a1e71..3728ead7 100644 --- a/scaluq/gate/gate_factory.hpp +++ b/scaluq/gate/gate_factory.hpp @@ -152,10 +152,11 @@ inline Gate DenseMatrix(const std::vector& targets, const ComplexMatrix& m throw std::runtime_error( "gate::DenseMatrix(const std::vector&, const ComplexMatrix&): DenseMatrix gate more " "than two qubits is not implemented yet."); - inline Gate Probablistic(const std::vector& distribution, - const std::vector& gate_list) { +} +inline Gate Probablistic(const std::vector& distribution, + const std::vector& gate_list) { return internal::GateFactory::create_gate(distribution, - } + gate_list); } } // namespace gate } // namespace scaluq