DifferentiableBackend
              DifferentiableBackend(backend, diff_mode=DiffMode.AD, **psr_args)
    
              Bases: DifferentiableBackend
A class which wraps a QuantumBackend with the automatic differentation engine TORCH.
| PARAMETER | DESCRIPTION | 
|---|---|
backend | 
            
               An instance of the QuantumBackend type perform execution. 
                  
                    TYPE:
                        | 
          
diff_mode | 
            
               A differentiable mode supported by the differentiation engine. 
                  
                    TYPE:
                        | 
          
**psr_args | 
            
               Arguments that will be passed on to  
                  
                    TYPE:
                        | 
          
Source code in qadence/engines/torch/differentiable_backend.py
                    
                  
            expectation(circuit, observable, param_values={}, state=None, measurement=None, noise=None, mitigation=None, endianness=Endianness.BIG)
    Compute the expectation value of the circuit with the given observable.
| PARAMETER | DESCRIPTION | 
|---|---|
circuit | 
            
               A converted circuit as returned by  
                  
                    TYPE:
                        | 
          
observable | 
            
               A converted observable as returned by  
                  
                    TYPE:
                        | 
          
param_values | 
            
               Already embedded parameters of the circuit. See
 
                  
                    TYPE:
                        | 
          
state | 
            
               Initial state. 
                  
                    TYPE:
                        | 
          
measurement | 
            
               Optional measurement protocol. If None, use exact expectation value with a statevector simulator. 
                  
                    TYPE:
                        | 
          
noise | 
            
               A noise model to use. 
                  
                    TYPE:
                        | 
          
mitigation | 
            
               The error mitigation to use. 
                  
                    TYPE:
                        | 
          
endianness | 
            
               Endianness of the resulting bit strings. 
                  
                    TYPE:
                        | 
          
Source code in qadence/engines/torch/differentiable_backend.py
              
              DifferentiableBackend(backend, diff_mode=DiffMode.AD, **psr_args)
    
              Bases: DifferentiableBackend
A class which wraps a QuantumBackend with the automatic differentation engine JAX.
| PARAMETER | DESCRIPTION | 
|---|---|
backend | 
            
               An instance of the QuantumBackend type perform execution. 
                  
                    TYPE:
                        | 
          
diff_mode | 
            
               A differentiable mode supported by the differentiation engine. 
                  
                    TYPE:
                        | 
          
**psr_args | 
            
               Arguments that will be passed on to  
                  
                    TYPE:
                        | 
          
Source code in qadence/engines/jax/differentiable_backend.py
                    
                  
            expectation(circuit, observable, param_values={}, state=None, measurement=None, noise=None, mitigation=None, endianness=Endianness.BIG)
    Compute the expectation value of the circuit with the given observable.
| PARAMETER | DESCRIPTION | 
|---|---|
circuit | 
            
               A converted circuit as returned by  
                  
                    TYPE:
                        | 
          
observable | 
            
               A converted observable as returned by  
                  
                    TYPE:
                        | 
          
param_values | 
            
               Already embedded parameters of the circuit. See
 
                  
                    TYPE:
                        | 
          
state | 
            
               Initial state. 
                  
                    TYPE:
                        | 
          
measurement | 
            
               Optional measurement protocol. If None, use exact expectation value with a statevector simulator. 
                  
                    TYPE:
                        | 
          
noise | 
            
               A noise model to use. 
                  
                    TYPE:
                        | 
          
mitigation | 
            
               The error mitigation to use. 
                  
                    TYPE:
                        | 
          
endianness | 
            
               Endianness of the resulting bit strings. 
                  
                    TYPE:
                        |