Patent attributes
Systems and techniques that facilitate measurement aggregation in quantum programs are provided. In various embodiments, a system can comprise an input component that can access a quantum program. In various instances, the system can further comprise an aggregation component that can aggregate quantum measurement instructions that are listed in the quantum program. In various embodiments, the aggregation component can aggregate the quantum measurement instructions by: identifying a first quantum measurement instruction in the quantum program; identifying another quantum instruction in the quantum program that is adjacent to the first quantum measurement instruction; and swapping and/or merging the first quantum measurement instruction with the another quantum instruction based on determining whether the first quantum measurement instruction and the another quantum instruction share qubits and based on determining whether the another quantum instruction is a quantum measurement instruction.