Skip to content

Commit

Permalink
Move delay gate to custom instructions (#2153)
Browse files Browse the repository at this point in the history
  • Loading branch information
doichanj authored May 30, 2024
1 parent 0591436 commit 33f77c5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
8 changes: 8 additions & 0 deletions qiskit_aer/backends/aer_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ class AerSimulator(AerBackend):
"continue_loop",
"reset",
"switch_case",
"delay",
]
),
"density_matrix": sorted(
Expand All @@ -549,6 +550,7 @@ class AerSimulator(AerBackend):
"continue_loop",
"reset",
"switch_case",
"delay",
]
),
"matrix_product_state": sorted(
Expand All @@ -575,6 +577,7 @@ class AerSimulator(AerBackend):
"continue_loop",
"reset",
"switch_case",
"delay",
]
),
"stabilizer": sorted(
Expand All @@ -598,6 +601,7 @@ class AerSimulator(AerBackend):
"continue_loop",
"reset",
"switch_case",
"delay",
]
),
"extended_stabilizer": sorted(
Expand All @@ -607,6 +611,7 @@ class AerSimulator(AerBackend):
"roerror",
"save_statevector",
"reset",
"delay",
]
),
"unitary": sorted(
Expand All @@ -615,6 +620,7 @@ class AerSimulator(AerBackend):
"save_unitary",
"set_unitary",
"reset",
"delay",
]
),
"superop": sorted(
Expand All @@ -627,6 +633,7 @@ class AerSimulator(AerBackend):
"save_superop",
"set_superop",
"reset",
"delay",
]
),
"tensor_network": sorted(
Expand All @@ -650,6 +657,7 @@ class AerSimulator(AerBackend):
"set_density_matrix",
"reset",
"switch_case",
"delay",
]
),
}
Expand Down
8 changes: 0 additions & 8 deletions qiskit_aer/backends/backend_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@
"diagonal",
"multiplexer",
"initialize",
"delay",
"pauli",
"mcx_gray",
"ecr",
Expand Down Expand Up @@ -155,7 +154,6 @@
"ccx",
"unitary",
"diagonal",
"delay",
"pauli",
"ecr",
]
Expand Down Expand Up @@ -186,7 +184,6 @@
"ccx",
"unitary",
"roerror",
"delay",
"pauli",
"r",
"rx",
Expand Down Expand Up @@ -218,7 +215,6 @@
"cy",
"cz",
"swap",
"delay",
"pauli",
"ecr",
"rz",
Expand All @@ -245,7 +241,6 @@
"p",
"ccx",
"ccz",
"delay",
"pauli",
"ecr",
"rz",
Expand Down Expand Up @@ -311,7 +306,6 @@
"unitary",
"diagonal",
"multiplexer",
"delay",
"pauli",
"ecr",
]
Expand Down Expand Up @@ -351,7 +345,6 @@
"ccx",
"unitary",
"diagonal",
"delay",
"pauli",
]
),
Expand Down Expand Up @@ -416,7 +409,6 @@
"diagonal",
"multiplexer",
"initialize",
"delay",
"pauli",
"mcx_gray",
"ecr",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
fixes:
- |
Add/move `delay` gate to default custom instructions for `AerSimulator.configulation`
to resolve error reported in issue #2152, `delay` was not in `basis_gates`
when AerSimulator is made by `from_backend`

0 comments on commit 33f77c5

Please sign in to comment.