Skip to content

Commit

Permalink
Update circuit_maker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fequinteros authored Nov 3, 2022
1 parent e07fa7d commit b03fc2f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions bell_checker/circuit_maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,8 @@ def __init__( self, auto=False, n_shots=1024, backend='aer_simulator' ):
backend: The backend on the circuits are excecuted.
"""

supported_backend = ['aer_simulator', 'qasm_simulator']

assert type( auto ) == bool, 'The auto parameter must be a boolean (default value is False)'
assert type( n_shots ) == int, 'The n_shots parameter must be a integer (default value is 1024)'
assert type( backend ) == str, 'The backend parameter must be a string (default value is \'aer_simulator\')'
assert backend in supported_backend, 'The allowed backend parameters are {}'.format(supported_backend)

self.n_shots = n_shots
self.backend = backend
Expand Down

0 comments on commit b03fc2f

Please sign in to comment.