Skip to content
This repository was archived by the owner on Oct 7, 2019. It is now read-only.

Commit c66b30f

Browse files
committed
Fixed imports
1 parent 34c31eb commit c66b30f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

referenceqvm/api.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
"""
22
Sets up the appropriate QVM, and interfacing.
33
"""
4-
from referenceqvm.gates import gate_matrix
4+
from referenceqvm.gates import gate_matrix, stabilizer_gate_matrix
55
from referenceqvm.qvm_wavefunction import QVM_Wavefunction
66
from referenceqvm.qvm_unitary import QVM_Unitary
77
from referenceqvm.qvm_density import QVM_Density
8+
from referenceqvm.qvm_stabilizer import QVM_Stabilizer
89

910

1011
def QVMConnection(type_trans='wavefunction',
@@ -36,7 +37,7 @@ def QVMConnection(type_trans='wavefunction',
3637
qvm = QVM_Density(gate_set=gate_set, noise_model=noise_model)
3738

3839
elif type_trans == 'stabilizer':
39-
qvm = QVM_Stabilizer(gate_set=stabilizer_gate_set)
40+
qvm = QVM_Stabilizer(gate_set=stabilizer_gate_matrix)
4041
else:
4142
raise TypeError("{} is not a valid QVM type.".format(type_trans))
4243

0 commit comments

Comments
 (0)