Quandary
Loading...
Searching...
No Matches
Functions
gate.cpp File Reference
#include "gate.hpp"
#include "defs.hpp"
Include dependency graph for gate.cpp:

Functions

GateinitTargetGate (GateType target_gate, const std::string &file, const std::vector< size_t > &nlevels, const std::vector< size_t > &nessential, double total_time, DecoherenceType decoherence_type, const std::vector< double > &gate_rot_freq, bool quietmode)
 Factory function to initialize a gate from configuration string.
 

Function Documentation

◆ initTargetGate()

Gate * initTargetGate ( GateType  target_gate,
const std::string &  file,
const std::vector< size_t > &  nlevels,
const std::vector< size_t > &  nessential,
double  total_time,
DecoherenceType  decoherence_type,
const std::vector< double > &  gate_rot_freq,
bool  quietmode 
)

Factory function to initialize a gate from configuration string.

Creates and returns a pointer to the appropriate Gate subclass based on the target specification string.

Parameters
target_gatetarget_gate Type of gate to initialize.
filePath to the file containing gate matrix data (if applicable).
nlevelsNumber of levels per oscillator.
nessentialNumber of essential levels per oscillator.
total_timeTotal time for gate operation.
decoherence_typeType of Lindblad operators for open system dynamics.
gate_rot_freqFrequencies of gate rotation.
quietmodeFlag to suppress output messages.
Returns
Gate* Pointer to the initialized gate object.