Skip to content

Commit 8950aff

Browse files
author
Rúben André Barreiro
committed
Some changes in Quantum Moment for Quantum Circuits added
1 parent a8b8989 commit 8950aff

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/main/java/org/quisl/framework/java/circuits/utils/quantum/QuantumMoment.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,29 @@
22

33
import org.quisl.framework.java.circuits.utils.Moment;
44
import org.quisl.framework.java.circuits.utils.common.MomentPrefixes;
5+
import org.quisl.framework.java.instructions.operators.quantum.QuantumOperator;
6+
7+
import java.util.Map;
8+
import java.util.concurrent.ConcurrentHashMap;
59

610
public class QuantumMoment extends Moment {
711

12+
private Map<Long, QuantumOperator> quantumOperators;
13+
14+
815
public QuantumMoment(Long numMoment) {
916

1017
super(numMoment, MomentPrefixes.QUANTUM_MOMENT.getMomentPrefix());
1118

19+
this.quantumOperators = new ConcurrentHashMap<>();
20+
21+
}
22+
23+
24+
public Map<Long, QuantumOperator> getQuantumOperators() {
25+
26+
return this.quantumOperators;
27+
1228
}
1329

1430
}

0 commit comments

Comments
 (0)