Skip to content

Commit

Permalink
fix qasm_simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
doichanj committed Aug 8, 2024
1 parent db8009f commit f323ccd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qiskit_aer/backends/qasm_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,8 @@ def configuration(self):
setattr(config, key, val)
# Update basis gates based on custom options, config, method,
# and noise model
config.custom_instructions = self._custom_instructions()
config.basis_gates = self._cached_basis_gates + config.custom_instructions
config["custom_instructions"] = self._custom_instructions()
config["basis_gates"] = self._cached_basis_gates + config["custom_instructions"]
return config

def available_methods(self):
Expand Down Expand Up @@ -681,7 +681,7 @@ def _basis_gates(self):

# Compute intersection with method basis gates
method_gates = self._method_basis_gates()
config_gates = self._configuration.basis_gates
config_gates = self.configuration().["basis_gates"]
if config_gates:
basis_gates = set(config_gates).intersection(method_gates)
else:
Expand Down

0 comments on commit f323ccd

Please sign in to comment.