Skip to content

Commit 1b98870

Browse files
committed
Fixing a few minor issues
1 parent 789ab2b commit 1b98870

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

projectq/libs/qasm/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
try:
2323
from ._parse_qasm_pyparsing import read_qasm_file, read_qasm_str
2424
except ImportError as e:
25-
import warnings
26-
2725
err = (
2826
'Unable to import either qiskit or pyparsing\nPlease install either of them if you want to use '
2927
'projectq.libs.qasm (e.g. using the command python -m pip install projectq[qiskit])'

projectq/libs/qasm/_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __init__(self, name, params):
2525
Constructor
2626
2727
Args:
28-
name (str): Name/type of gat
28+
name (str): Name/type of the quantum gate
2929
params (list,tuple): Parameter for the gate (may be empty)
3030
"""
3131

@@ -50,7 +50,6 @@ def apply_gate(gate, qubits):
5050
"""
5151
Apply a gate to some qubits while separating control and target qubits.
5252
53-
5453
Args:
5554
gate (BasicGate): Instance of a ProjectQ gate
5655
qubits (list): List of ProjectQ qubits the gate applies to.

0 commit comments

Comments
 (0)