qadence
qadence copied to clipboard
[Refac] Merge `run` and `run_dm` in the backends
This issue includes several tasks for refactoring and adding noise in Qadence
:
Merge run
and run_dm
in the backends:
- [x] Remove the
run_dm
method from the abstract classBackend
, theHorcrux
,Bracket
andPyqtorch
classes.. - [x] Merge the
run_dm
andrun
methods in thePulser
backend class. - [x] Modify the
unpyqfy
method to represent the output density matrix as tensor. Closes #428
Add the noise gates from pyq
:
- [x] Add an optional
noise
parameter to thePrimitiveBlock
class - [x] Add an optional
noise
parameter to theParametricBlock
class - [ ] Update the
Primitive
andParametric
block instances class to support thenoise
attribute. - [x] Add
pyq
's protocols to theNoise
Class. - [ ] Modify the
convert_block
function: - [ ] Add a constructor in
pyq
: Closes #423
Add the noise features:
- [ ] Create a function to add a noise protocol after every gate in a circuit.
- [ ] Create a function to add a noise protocol after a specific type of gate in a circuit. (Will open an issue)