File tree Expand file tree Collapse file tree 1 file changed +35
-2
lines changed
src/main/java/org/quisl/framework/java/instructions/operators/classical Expand file tree Collapse file tree 1 file changed +35
-2
lines changed Original file line number Diff line number Diff line change 1
1
package org .quisl .framework .java .instructions .operators .classical ;
2
2
3
+ import org .quisl .framework .java .common .ComputingPrefixes ;
4
+ import org .quisl .framework .java .instructions .gates .Gate ;
5
+ import org .quisl .framework .java .instructions .gates .classical .ClassicalGate ;
3
6
import org .quisl .framework .java .instructions .operators .Operator ;
7
+ import org .quisl .framework .java .units .computing .classical .binary .deterministic .bits .Bit ;
4
8
5
9
public abstract class ClassicalOperator extends Operator {
6
10
7
- public ClassicalOperator (Long operatorId ) {
8
- super (operatorId );
11
+ private final Integer numBitsInput ;
12
+
13
+ private final Integer numBitsOutput ;
14
+
15
+ private ClassicalGate classicalGate ;
16
+
17
+
18
+ public ClassicalOperator (Long operatorId , Integer numBitsInput , Integer numBitsOutput ) {
19
+
20
+ super (operatorId , ComputingPrefixes .CLASSICAL_PREFIX .getComputingPrefix ());
21
+
22
+ this .numBitsInput = numBitsInput ;
23
+ this .numBitsOutput = numBitsOutput ;
24
+
25
+ }
26
+
27
+
28
+ public Integer getNumBitsInput () {
29
+
30
+ return this .numBitsInput ;
31
+
9
32
}
10
33
34
+ public Integer getNumBitsOutput () {
11
35
36
+ return this .numBitsOutput ;
37
+
38
+ }
39
+
40
+ public ClassicalGate getClassicalGate () {
41
+
42
+ return this .classicalGate ;
43
+
44
+ }
12
45
13
46
}
You can’t perform that action at this time.
0 commit comments