Sequential Quantum Gate Decomposer  v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
List of all members | Public Member Functions | Public Attributes
circuits.DualBuilder Class Reference

Public Member Functions

def __init__ (self, n_qubits)
 
def amp_damp (self, t, gamma)
 
def CNOT (self, tgt, ctrl)
 
def CZ (self, tgt, ctrl)
 
def depolarizing (self, p)
 
def get_parameter_vector (self)
 
def H (self, t)
 
def local_depolarizing (self, t, p)
 
def phase_damp (self, t, lam)
 
def run (self)
 
def run_qiskit (self)
 
def run_squander (self)
 
def S (self, t)
 
def Sdg (self, t)
 
def SX (self, t)
 
def T (self, t)
 
def Tdg (self, t)
 
def U3 (self, t, theta, phi, lam)
 
def X (self, t)
 
def Y (self, t)
 
def Z (self, t)
 

Public Attributes

 n
 
 ops
 
 params
 
 qk
 
 sq
 

Detailed Description

Build identical circuits in both SQUANDER and Qiskit frameworks.

Definition at line 27 of file circuits.py.

Constructor & Destructor Documentation

◆ __init__()

def circuits.DualBuilder.__init__ (   self,
  n_qubits 
)

Definition at line 30 of file circuits.py.

Member Function Documentation

◆ amp_damp()

def circuits.DualBuilder.amp_damp (   self,
  t,
  gamma 
)

Definition at line 114 of file circuits.py.

◆ CNOT()

def circuits.DualBuilder.CNOT (   self,
  tgt,
  ctrl 
)

Definition at line 93 of file circuits.py.

◆ CZ()

def circuits.DualBuilder.CZ (   self,
  tgt,
  ctrl 
)

Definition at line 98 of file circuits.py.

◆ depolarizing()

def circuits.DualBuilder.depolarizing (   self,
  p 
)

Definition at line 104 of file circuits.py.

◆ get_parameter_vector()

def circuits.DualBuilder.get_parameter_vector (   self)
Return the numeric parameter vector used for parametric operations.

Definition at line 164 of file circuits.py.

◆ H()

def circuits.DualBuilder.H (   self,
  t 
)

Definition at line 38 of file circuits.py.

◆ local_depolarizing()

def circuits.DualBuilder.local_depolarizing (   self,
  t,
  p 
)

Definition at line 109 of file circuits.py.

◆ phase_damp()

def circuits.DualBuilder.phase_damp (   self,
  t,
  lam 
)

Definition at line 119 of file circuits.py.

◆ run()

def circuits.DualBuilder.run (   self)
Execute both and return density matrices as numpy arrays.

Definition at line 125 of file circuits.py.

Here is the call graph for this function:

◆ run_qiskit()

def circuits.DualBuilder.run_qiskit (   self)
Execute Qiskit only using optimal Aer density matrix simulation.

Uses AerSimulator with method='density_matrix' which:
- Directly simulates the density matrix evolution
- Natively handles QuantumError noise channels (depolarizing, amplitude/phase damping)
- Is more efficient than qiskit.quantum_info.DensityMatrix.evolve() for noisy circuits

Definition at line 142 of file circuits.py.

Here is the caller graph for this function:

◆ run_squander()

def circuits.DualBuilder.run_squander (   self)
Execute SQUANDER only.

Definition at line 136 of file circuits.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ S()

def circuits.DualBuilder.S (   self,
  t 
)

Definition at line 58 of file circuits.py.

◆ Sdg()

def circuits.DualBuilder.Sdg (   self,
  t 
)

Definition at line 68 of file circuits.py.

◆ SX()

def circuits.DualBuilder.SX (   self,
  t 
)

Definition at line 78 of file circuits.py.

◆ T()

def circuits.DualBuilder.T (   self,
  t 
)

Definition at line 63 of file circuits.py.

◆ Tdg()

def circuits.DualBuilder.Tdg (   self,
  t 
)

Definition at line 73 of file circuits.py.

◆ U3()

def circuits.DualBuilder.U3 (   self,
  t,
  theta,
  phi,
  lam 
)

Definition at line 83 of file circuits.py.

◆ X()

def circuits.DualBuilder.X (   self,
  t 
)

Definition at line 43 of file circuits.py.

◆ Y()

def circuits.DualBuilder.Y (   self,
  t 
)

Definition at line 48 of file circuits.py.

◆ Z()

def circuits.DualBuilder.Z (   self,
  t 
)

Definition at line 53 of file circuits.py.

Member Data Documentation

◆ n

circuits.DualBuilder.n

Definition at line 31 of file circuits.py.

◆ ops

circuits.DualBuilder.ops

Definition at line 34 of file circuits.py.

◆ params

circuits.DualBuilder.params

Definition at line 35 of file circuits.py.

◆ qk

circuits.DualBuilder.qk

Definition at line 33 of file circuits.py.

◆ sq

circuits.DualBuilder.sq

Definition at line 32 of file circuits.py.


The documentation for this class was generated from the following file: