Searcharxiv⌕ Search

arXiv subjects

Jicheng Wang

Publications and source records attributed to Jicheng Wang.

24 records · Page 2Linked to original sources

RepoGenReflex: Enhancing Repository-Level Code Completion with Verbal Reinforcement and Retrieval-Augmented Generation

In real-world software engineering tasks, solving a problem often requires understanding and modifying multiple functions, classes, and files across a large codebase. Therefore, on the repository level, it is crucial to extract the relevant information to achieve accurate code completion effectively. Existing code completion tools have achieved some success, but they struggle to optimize the retrieval and generation process dynamically. In this paper, we propose RepoGenReflex, a generic, dynamic, effective framework to address this challenge. By leveraging the Retrieval-Augmented Generation (RAG) enhanced with Verbal Reinforcement Learning (VRL), it can dynamically choose the optimal results for repository-level code completion. RepoGenReflex uses Reflector to give directional feedback to the next loop. RepoGenReflex chooses the optimal results stored in the Experience cache based on the RAG-VRL loop. To validate the framework's generalization ability, we propose a new benchmark RepoGenEval, which consists of the latest, high-quality real-world repositories in line completion scenarios. Our experiments demonstrate that RepoGenReflex achieves significant improvements after optimizing the Reflector component, resulting in enhanced accuracy and relevance of code completions. Additionally, RepoGenReflex consistently demonstrates superior performance and effectiveness across standard code completion tasks, highlighting the robustness and adaptability of our framework.

cs.SE↗

Formation of bound states in the continuum in double trapezoidal grating

In the field of optics, bound state in the continuum (BIC) has been researched in many photonic crystals and periodic structures due to a strong resonance and an ultrahigh Q factor. Some designs of narrowband transmission filters, lasers, and sensors were proposed based on excellent optical properties of BIC. In this paper, we consider symmetrical rectangular grating structure firstly, then cut off the corner of one of the gratings, the Fano peak of quasi-BIC can be observed in the spectrum. After that, we further change the tilt parameter of the other grating, which minimizes the Fano line width. In the momentum space, the process of structural change corresponds to topological charges split from q=1 into two half charges q=1/2.We analyze guided mode resonance (GMR) excitation of the grating structure, and discuss the dispersion relations in the waveguide layer with the position of BIC in energy bands. In addition, the reflectance spectrum is found to exhibit asymmetric line-shapes with different values of the asymmetry parameters, M1 and M2. BIC is transformed into quasi-BIC as the symmetry of the structure is broken. This work demonstrates a double trapezoid structure with strong resonance properties, which has significant implications for exploring the phenomenon of BIC.

physics.optics↗

Designing Few-layer Graphene Schottky Contact Solar Cell: Theoretical Efficiency Limits and Parametric Optimization

We theoretically study the efficiency limits and performance characteristics of few-layer graphene-semiconductor solar cells (FGSCs) based on a Schottky contact device structure. We model and compare the energy conversion efficiency of various configurations by explicitly considering the non-Richardson thermionic emission across few-layer graphene/semiconductor Schottky heterostructures. The calculations reveal that ABA-stacked trilayer graphene-silicon solar cell exhibits a maximal conversion efficiency exceeding 28\% due to a lower reversed saturation current when compared to that of the ABC-stacking configuration. The thermal coefficients of PCE for ABA and ABC stacking FGSCs are -0.064\%/K and -0.049\%/K, respectively. Our work offers insights for optimal designs of graphene-based solar cells, thus paving a route towards the design of high-performance FGSC for future nanoscale energy converters.

physics.app-ph↗

Universal decay of quantumness for photonic qubits carrying orbital angular momentum through atmospheric turbulence

We investigate the decay properties of the quantumness including quantum entanglement, quantum discord and quantum coherence for two photonic qubits, which are partially entangled in their orbital angular momenta, through Kolmogorov turbulent atmosphere. It is found that the decay of quantum coherence and quantum discord may be qualitatively different from that of quantum entanglement when the initial state of two photons is not maximally entangled. We also derive two universal decay laws for quantum coherence and quantum discord, respectively, and show that the decay of quantum coherence is more robust than nonclassical correlations.

quant-ph↗

Sudden transitions of trace distance discord of dipole-dipole coupled two qubits

We investigate the exact dynamics of trace distance discord by considering two qubits under dephasing whose states belong to a class of $X$ states beyond Bell diagonal form. The necessary condition for the occurrence of freezing trace distance discord is found and compared with that of entropic discord. For an illustration, we consider two interacting qubits coupled to independent reservoirs and demonstrate these dynamical properties of trace distance discord. It is interesting to find that the freezing trace distance discord exists even for $X$ states without maximally mixed marginals and can be tuned by dipole-dipole coupling of two qubits. Moreover, we consider the initial extended Werner-like states and investigate the differences between trace distance discord and entanglement. The influences of initial state and the dipole-dipole coupling of the two qubits on the dynamics of nonclassical correlations are explored.

quant-ph↗

Observation of quantum diffractive collisions using shallow atomic traps

We present measurements and calculations of the trap loss rate for laser cooled Rb atoms confined in either a magneto-optic or a magnetic quadrupole trap when exposed to a room temperature background gas of Ar. We study the loss rate as a function of trap depth and find that copious glancing elastic collisions, which occur in the so-called quantum-diffractive regime and impart very little energy to the trapped atoms, result in significant differences in the loss rate for the MOT compared to a pure magnetic trap due solely to the difference in potential depth. This finding highlights the importance of knowing the trap depth when attempting to infer the total collision cross section from measurements of trap loss rates. Moreover, this variation of trap loss rate with trap depth can be used to extract information about the differential cross section.

physics.atom-ph↗