Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Remove deprecated DAGCircuit method usage. (#1093)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdk committed Dec 1, 2020
1 parent aefaab4 commit ef20331
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@
" else:\n",
" self.initial_layout = Layout.generate_trivial_layout(*dag.qregs.values())\n",
"\n",
" if len(dag.qubits()) != len(self.initial_layout):\n",
" if len(dag.qubits) != len(self.initial_layout):\n",
" raise TranspilerError('The layout does not match the amount of qubits in the DAG')\n",
"\n",
" if len(self.coupling_map.physical_qubits) != len(self.initial_layout):\n",
Expand Down Expand Up @@ -1883,7 +1883,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.5"
"version": "3.7.7"
},
"varInspector": {
"cols": {
Expand Down

0 comments on commit ef20331

Please sign in to comment.