pecos_qsim/quantum_simulator.rs
1// Copyright 2024 The PECOS Developers
2//
3// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
4// in compliance with the License.You may obtain a copy of the License at
5//
6// https://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software distributed under the License
9// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
10// or implied. See the License for the specific language governing permissions and limitations under
11// the License.
12
13pub trait QuantumSimulator {
14 fn new(num_qubits: usize) -> Self;
15
16 fn num_qubits(&self) -> usize;
17
18 fn reset(&mut self) -> &mut Self;
19}