Skip to content

Commit

Permalink
Fixed docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian S. Steiger committed Jun 14, 2018
1 parent 2095ae3 commit 1e4717b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projectq/cengines/_linearmapper.py
Expand Up @@ -93,7 +93,7 @@ def __init__(self, num_qubits, cyclic=False, storage=1000):
Args:
num_qubits(int): Number of physical qubits in chain
cyclic(bool): If 1D chain is a cycle. Default is False.
storage: Number of gates to temporarily store
storage(int): Number of gates to temporarily store, default is 1000
"""
BasicMapperEngine.__init__(self)
self.num_qubits = num_qubits
Expand Down Expand Up @@ -128,7 +128,7 @@ def return_new_mapping(num_qubits, cyclic, currently_allocated_ids,
"""
Builds a mapping of qubits to a linear chain.
It goes through self._saved_commands and tries to find a
It goes through stored_commands and tries to find a
mapping to apply these gates on a first come first served basis.
More compilicated scheme could try to optimize to apply as many gates
as possible between the Swaps.
Expand Down

0 comments on commit 1e4717b

Please sign in to comment.