Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

2 results about "Object copying" patented technology

In object-oriented programming, object copying is creating a copy of an existing object, a unit of data in object-oriented programming. The resulting object is called an object copy or simply copy of the original object. Copying is basic but has subtleties and can have significant overhead. There are several ways to copy an object, most commonly by a copy constructor or cloning. Copying is done mostly so the copy can be modified or moved, or the current value preserved. If either of these is unneeded, a reference to the original data is sufficient and more efficient, as no copying occurs.

Object copying method, apparatus, medium, product, and system

PendingCN122363958AObject copyingTheoretical computer science
This application provides an object copying method, apparatus, medium, product, and system. The method includes: annotating the class definitions of the source and target objects with preset annotations; generating static inner classes during the compilation phase and statically generating attribute copying-related code within the static inner classes; statically generating an array `enhancedFields` based on the code; and statically generating `copyFromSource` and `copyToTarget` based on the code; calling the `copy` method in the copy utility class `EnhancedBeanUtils`, passing in the source and target objects; and performing attribute copying after confirming that both the source and target objects have been enhanced with preset annotations. This solves the problem that existing solutions require preheating and dynamic bytecode generation, making it difficult to achieve a ready-to-use effect.
Owner:中国邮政储蓄银行股份有限公司

Method, device and system for generating a quantum circuit

PendingCN122311485AComputer hardwareObject copying
This application discloses a method, apparatus, and system for generating quantum circuits, belonging to the field of quantum technology. The method includes: determining a first object to be copied, wherein the first object is one or more quantum gates located in the editing area of ​​a graphical programming interface for quantum circuits, and the editing area is the region in the graphical programming interface for editing quantum circuits; obtaining the number of copies of the first object; and obtaining the copying direction of the first object, wherein the copying direction is the direction of the copy relative to the first object, and the number of copies and the copying direction are used to generate a first quantum circuit. This method enables the generation of a number of copies of the object to be copied in a single copy operation on the graphical programming interface, thus improving the efficiency of quantum circuit construction.
Owner:HUAWEI TECH CO LTD