Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

Sovremennye informacionnye tehnologii i IT-obrazovanie.

Simulating Ising-Like Models on Quantum Computer

Aleksey Andreev, Pavel Khrapov

Published Oct 15, 2023• 1 citation
Publisher

Abstract

Due to the complexity of lattice models of statistical physics, there is interest in developing new approaches to study them, including those using quantum technologies. In this paper, we describe and implement a scheme for applying the Variational Quantum Eigensolver to the problem of finding the free energy and magnetization in the thermodynamic limit of the -chain generalized planar Ising model with the interaction of nearest neighbors, next nearest neighbors, and plaquette interactions. The calculation of Rayleigh quotient for transfer matrix is described in detail for . Using special parameterizations of the state of the system of qubits and transfer matrix decomposition, free energy and magnetization are calculated for 3-chain model on a quantum computer emulator. The entire computation process, including quantum computer emulation, is implemented using the Python programming language. Also, a method is proposed for significant acceleration of calculations (by about 10,000 times) on the emulator for considered models. Confidence intervals are constructed for the found characteristics of the model. В связи со сложностью исследования решеточных моделей статистической физики возникает интерес к разработке новых подходов к их изучению, в том числе с использованием квантовых технологий. В данной работе описывается и реализуется схема применения Variational Quantum Eigensolver(вариационный квантовый алгоритм для нахождения собственный значений) к задаче нахождения свободной энергии и намагниченности в термодинамическом пределе n-цепной обобщенной плоской модели Изинга с учетом взаимодействия ближайших соседей, следующих ближайших соседей и плакетных взаимодействий. Расчет отношения Рэлея для трансфер-матрицы подробно описан для . С помощью специальных параметризаций состояния системы кубитов и разложения трансфер-матрицы вычисляются свободная энергия и намагниченность для трехцепочечной модели на эмуляторе квантового компьютера. Весь процесс вычислений, включая эмуляцию квантового компьютера, реализован с использованием языка программирования Python. Также предлагается метод значительного ускорения вычислений (примерно в 10 000 раз) на эмуляторе для рассматриваемых моделей. Для найденных характеристик модели построены доверительные интервалы.

DOI
10.25559/sitito.019.202303.554-563

Related papers

Variational method for 1D spin chains

Attila Virosztek

We report on a new variational method for determining the ground state energy of antiferromagnetic Heisenberg spin chains with nearest neighbour interaction.The method enables us to extrapolate to the exact energy and it is shown that the first few approximations give better results than other approximate methods. АННОТАЦИЯРазработан новый вариационный подход, с помощью которого можно опреде лить энергию основного состояния антиферромагнитной гейзенберговской спиновой цепи с учетом взаимодействия ближайших соседей.Разработанный подход приго ден и для определения точного значения энергии, пользуясь экстраполяцией; при этом учет нескольких первых шагов дает лучшие результаты, чем другие прибли женные методы.

Journal of Physics C Solid State Physics•Aug 30, 1985•2 citations

Disorder Solutions for Generalized Ising Model with Multispin Interaction

Pavel Khrapov

This study demonstrates a development of convenient formulae for obtaining the value of the free energy in the thermodynamic limit on a set of exact disorder solutions depending on four parameters for a 2D generalized Ising model in an external magnetic field with the interaction of nearest neighbors, next nearest neighbors, all kinds of triple interactions and the four interactions for the planar model, and for the 3D generalized Ising model in an external magnetic field with all kinds of interactions in the tetrahedron formed by four spins: at the origin of the coordinates and the closest to it along three coordinate axes in the first coordinate octant. Lattice models are considered with boundary conditions with a shift (similar to helical ones), and a cyclic closure of the set of all points (in natural ordering). For both the planar model and the 3D model, elementary transfer matrices with nonnegative matrix elements are constructed, while the free energy in the thermodynamic limit is equal to the Napierian logarithm of the maximum eigenvalue of the transfer matrix. This maximum eigenvalue can be found for a special kind of eigenvector with positive components. The region of existence of these solutions is described. The examples show the existence of nontrivial solutions of the resulting systems of equations for plane and threedimensional generalized Ising models. The system of equations and the value of free energy in the thermodynamic limit will remain the same for plane and threedimensional models with Hamiltonians, in which the value of the maximum in the natural ordering of the spin is replaced by the value of the spin at almost any other point in the lattice, this significantly expands the set of models having disordered exact solutions. The high degree of symmetry and repeatability of the components of the found eigenvectors, disappearing when we go beyond the framework of the obtained set of exact solutions, are the reason for the search for phase transitions in the vicinity of this set of disordered solutions. В работе получены формулы для нахождения свободной энергии в термодинамическом пределе на множестве точных неупорядоченных решений (disordersolutions), зависящих от четырех параметров для 2Dобобщенной модели Изинга во внешнем магнитном полесо взаимодействием ближайших соседей, следующих ближайших соседей (nextnearest), всевозможных тройных взаимодействий и взаимодействия четырех спинов для плоской модели, и для 3Dобобщенной модели Изинга во внешнем магнитном полесо всевозможными взаимодействиями в тетраэдре, образованном четырьмя спинами: в начале координат и ближайшие к нему по трем координатным осям в первом координатном октанте. Решеточные модели рассматриваютсяс граничными условиями со сдвигом (похожие на винтовые), и циклическим замыканием множества всех точек (в естественном упорядочении). В обоих случаях для плоской и 3Dмоделей построены элементарные трансферматрицы с неотрицательными матричными элементами, при этом свободная энергия в термодинамическом пределе равна натуральному логарифму максимального собственного значения трансферматрицы. Это максимальное собственное значение удается найти для специального вида собственного вектора с положительными компонентами. Описана область существования этих решений.На примерах показано существование нетривиальных решений получающихся систем уравнений для плоских и трехмерных обобщенных моделей Изинга. Система уравнений и значение свободной энергиив термодинамическом пределе останутся прежними для плоских и трехмерных моделей с гамильтонианами, в которых значение максимального в естественном упорядочении спина заменено значением спина практически в любой другой точке решетки, это значительно расширяет множество моделей, имеющих неупорядоченные точные решения.Высокая симметрия и повторяемость компонент найденных собственных векторов, исчезающая при выходе за рамки полученного множества точных решений, является поводом для поиска фазовых переходов в окрестности этого множества неупорядоченных решений.

Sovremennye informacionnye tehnologii i IT-obrazovanie.•Jul 25, 2019•3 citations

Ground-state energies of Ising models calculated using the samples from a quantum computer that simulates short-time evolution

John P. T. Stenger, C. Stephen Hellberg, Daniel Gunlycke

We find the ground-state energy of the Ising model using the Cascaded Variational Quantum Eigensolver (CVQE) algorithm with the Guided-Sampling Ansatz (GSA) using up to 63 qubits on a quantum computer. We study a heavy-hex lattice to match the qubit architecture, allowing us to perform calculations in the quantum utility regime. We study both a homogeneous and random-coupling model. We locate the boundary of acceptable quantum errors as a function of the number of qubits and coupling strength. An entropic analysis is performed giving insights into the quantum computing performance. A subspace analysis is performed that suggests that the Ising model is especially suited for near-term quantum computing.

quant-pharXiv:2604.25715•APS Open Science•Apr 29, 2026•0 citations

Variational methods for simulating the quantum dynamics of Ising spin chains

Mohamed Barhoumi, Milad Ghadimi, Muhammad Idham Habibie +2 more

Variational quantum time evolution is a fundamental issue in physics and engineering. It provides a strong framework for modeling the dynamics of quantum states, which is essential for efficiently running quantum networks. It presents an excellent toolkit that can improve the efficacy, reliability, resilience and performance of quantum networks, opening the door to more sophisticated distributed computer systems, quantum communication, and other quantum technologies. The imaginary time evolution of quantum systems is one useful tool that enables the generation of ground or thermal states. In this work, we address standard variational principles, such as the Dirac and Frenkel variational principles, the McLachlan variational principle and the time-dependent variational principle to model real-time dynamics, as well as the Rayleigh–Ritz approach to address static challenges. We also present the variational quantum time evolution VarQITE and VarQRTE formalism in the density matrix method, which is not influenced by the global phase of the quantum state. We calculate the ground-state energy of our quantum Ising spin chain, using VarQITE with different interaction energies J , where three cases are considered. In the non-interacting ( NI ) case ( J = 0 ), we show that the energy of the ground state accomplished with VarQITE converges to an energy of − 2 . 00 Hartree at t = 1 . 1 seconds. In the Ferromagnetic ( FM ) interaction case ( J > 0 ), four scenarios are used to obtain the energy of the Hamiltonian. We show that the convergence and the energy 〈 H 〉 are sensitive to the energy of interaction J . Furthermore, the influence of the negative values of J < 0 , which correspond to the antiferromagnetic ( AFM ) case, on the energy of the ground state is also studied. We find that VarQITE and the exact classical solution are matched. We also investigated the expectation values for magnetization 〈 m z 〉 , employing VarQRTE and the exact classical solution. The NI, FM, and AFM cases are accomplished here. We find that when the spins are not interacting, 〈 m z 〉 = 0 , while it oscillates over time t when J > 0 and J < 0 . We believe that our outcomes will improve our knowledge of the variational quantum time evolution and lead to a better understanding of real and imaginary time evolution of quantum systems (which form a quantum network) and therefore, to more information on the time in networks.

Materials Today Quantum•Jun 1, 2026•0 citations

Disorder Solutions for Generalized Ising and Potts Models with Multispin Interaction

Pavel Khrapov

In this work, a special elementary transfer matrix is constructed for generalized Ising models and Potts models with the general form of a finite Hamiltonian with a multi-spin interaction in a space of arbitrary dimensionality, the Napierian logarithm of its maximum eigenvalue is equal to the free energy of the system. In some cases, it was possible to obtain an explicit form of the eigenvector corresponding to the largest eigenvalue of the elementary transfer matrix. On this basis we obtained systems of nonlinear equations for the interaction coefficients of the Hamiltonian for finding the exact value of the free energy on a set of disorder solutions. Using the Levenberg-Marquardt method, the existence of nontrivial solutions of the resulting systems of equations for plane and three-dimensional Ising models was shown. In some special cases (the 2D Ising model, the interaction potential, including the interaction of the next nearest neighbors and quadruple interactions; the 3D model with a special Hamiltonian symmetric relative to the change of all spin signs, for which it is possible to reduce the system of equations to the system for a planar model) three parameters are written in explicit form. The domain of existence of these solutions is described. В работе построена специальная элементарная трансфер-матрица для обобщенных моделей Изинга и моделей Поттса с общим видом финитного гамильтониана с мультиспиновым взаимодействием в пространстве произвольной размерности, натуральный логарифм максимального собственного значения которой равен свободной энергии системы. В некоторых случаях удалось получить явный вид собственного вектора, отвечающего наибольшему собственному значению элементарной трансфер-матрицы. На основе этого выведены системы нелинейных уравнений на коэффициенты взаимодействия гамильтониана для нахождения точного значения свободной энергии на множестве неупорядоченных решений (disorder solutions). Методом Левенберга-Марквардта показано существование нетривиальных решений получающихся систем уравнений для плоских и трехмерных моделей Изинга. В некоторых частных случаях (2D модель Изинга, потенциал взаимодействия, включающий взаимодействие следующих ближайших соседей и четверные взаимодействия; 3D модель со специальным гамильтонианом, симметричным относительно перемены всех знаков спинов, для которой удается свести систему уравнений к системе для плоской модели) решения, зависящие от трех параметров, выписаны в явном виде. Описана область существования этих решений.

Sovremennye informacionnye tehnologii i IT-obrazovanie.•Apr 19, 2019•6 citations

Emulators of Quantum Computers on Qubits and on Qudits

Aleksey Andreev, Pavel Khrapov

Quantum computing is still a developing, but an extremely promising area. The article lays out the main ideas behind quantum computing in simple terms. The topic of quantum computers based on qudits - multidimensional analogues of qubits, which have recently received much attention due to their efficiency, is also covered The fundamentals of quantum mechanics, which are necessary for understanding the principles of operation of a quantum computer, such concepts as qubits and qudits, linear operators, the measurement process, etc are introduced. As an example of quantum computing, the principle of operation of the Deutsch-Jozsa algorithm, one of the first quantum algorithms to demonstrate their advantages, and its generalization to qudits, are analyzed in detail. The process of writing the simplest quantum computer emulator in the Python programming language is described step by step. The emulator operates with an arbitrary number of qubits and allows you to apply arbitrary operators to them and carry out multiple measurements of the final state of the qubit. A generalization of this emulator for working with qudits is given after that. To demonstrate the emulator we have written, we present programs that implement the Deutsch-Jozsa algorithm and its generalizations on it, and test them. Квантовые вычисления — это развивающаяся и чрезвычайно перспективная область. В статье простыми словами изложены основные идеи, лежащие в основе квантовых вычислений. Также освещается тема квантовых компьютеров на основе кубитов - многомерных аналогов кубитов, которым в последнее время уделяется большое внимание благодаря их эффективности. Вводятся основы квантовой механики, которые необходимы для понимания принципов работы квантового компьютера, такие понятия, как кубиты и кудиты, линейные операторы, процесс измерения и т.д. В качестве примера квантовых вычислений подробно анализируются принцип работы алгоритма Дойча-Йожа, одного из первых квантовых алгоритмов, продемонстрировавшего свои преимущества, и его обобщение на кудиты. Пошагово описан процесс написания простейшего эмулятора квантового компьютера на языке программирования Python. Эмулятор работает с произвольным количеством кубитов и позволяет применять к ним произвольные операторы и проводить множественные измерения конечного состояния кубита. После этого дается обобщение этого эмулятора для работы с кудитами. Чтобы продемонстрировать написанный нами эмулятор, мы представляем программы, реализующие алгоритм Дойча-Йожа и его обобщения на нем, и тестируем их.

Sovremennye informacionnye tehnologii i IT-obrazovanie.•Jul 20, 2022•2 citations
Due to the complexity of lattice models of statistical physics, there is interest in developing new approaches to study them, including those using quantum technologies. In this paper, we describe and implement a scheme for applying the Variational Quantum Eigensolver to the problem of finding the free energy and magnetization in the thermodynamic limit of the -chain generalized planar Ising model with the interaction of nearest neighbors, next nearest neighbors, and plaquette interactions. The calculation of Rayleigh quotient for transfer matrix is described in detail for . Using special parameterizations of the state of the system of qubits and transfer matrix decomposition, free energy and magnetization are calculated for 3-chain model on a quantum computer emulator. The entire computation process, including quantum computer emulation, is implemented using the Python programming language. Also, a method is proposed for significant acceleration of calculations (by about 10,000 times) on the emulator for considered models. Confidence intervals are constructed for the found characteristics of the model. В связи со сложностью исследования решеточных моделей статистической физики возникает интерес к разработке новых подходов к их изучению, в том числе с использованием квантовых технологий. В данной работе описывается и реализуется схема применения Variational Quantum Eigensolver(вариационный квантовый алгоритм для нахождения собственный значений) к задаче нахождения свободной энергии и намагниченности в термодинамическом пределе n-цепной обобщенной плоской модели Изинга с учетом взаимодействия ближайших соседей, следующих ближайших соседей и плакетных взаимодействий. Расчет отношения Рэлея для трансфер-матрицы подробно описан для . С помощью специальных параметризаций состояния системы кубитов и разложения трансфер-матрицы вычисляются свободная энергия и намагниченность для трехцепочечной модели на эмуляторе квантового компьютера. Весь процесс вычислений, включая эмуляцию квантового компьютера, реализован с использованием языка программирования Python. Также предлагается метод значительного ускорения вычислений (примерно в 10 000 раз) на эмуляторе для рассматриваемых моделей. Для найденных характеристик модели построены доверительные интервалы.
We report on a new variational method for determining the ground state energy of antiferromagnetic Heisenberg spin chains with nearest neighbour interaction.The method enables us to extrapolate to the exact energy and it is shown that the first few approximations give better results than other approximate methods. АННОТАЦИЯРазработан новый вариационный подход, с помощью которого можно опреде лить энергию основного состояния антиферромагнитной гейзенберговской спиновой цепи с учетом взаимодействия ближайших соседей.Разработанный подход приго ден и для определения точного значения энергии, пользуясь экстраполяцией; при этом учет нескольких первых шагов дает лучшие результаты, чем другие прибли женные методы.
This study demonstrates a development of convenient formulae for obtaining the value of the free energy in the thermodynamic limit on a set of exact disorder solutions depending on four parameters for a 2D generalized Ising model in an external magnetic field with the interaction of nearest neighbors, next nearest neighbors, all kinds of triple interactions and the four interactions for the planar model, and for the 3D generalized Ising model in an external magnetic field with all kinds of interactions in the tetrahedron formed by four spins: at the origin of the coordinates and the closest to it along three coordinate axes in the first coordinate octant. Lattice models are considered with boundary conditions with a shift (similar to helical ones), and a cyclic closure of the set of all points (in natural ordering). For both the planar model and the 3D model, elementary transfer matrices with nonnegative matrix elements are constructed, while the free energy in the thermodynamic limit is equal to the Napierian logarithm of the maximum eigenvalue of the transfer matrix. This maximum eigenvalue can be found for a special kind of eigenvector with positive components. The region of existence of these solutions is described. The examples show the existence of nontrivial solutions of the resulting systems of equations for plane and threedimensional generalized Ising models. The system of equations and the value of free energy in the thermodynamic limit will remain the same for plane and threedimensional models with Hamiltonians, in which the value of the maximum in the natural ordering of the spin is replaced by the value of the spin at almost any other point in the lattice, this significantly expands the set of models having disordered exact solutions. The high degree of symmetry and repeatability of the components of the found eigenvectors, disappearing when we go beyond the framework of the obtained set of exact solutions, are the reason for the search for phase transitions in the vicinity of this set of disordered solutions. В работе получены формулы для нахождения свободной энергии в термодинамическом пределе на множестве точных неупорядоченных решений (disordersolutions), зависящих от четырех параметров для 2Dобобщенной модели Изинга во внешнем магнитном полесо взаимодействием ближайших соседей, следующих ближайших соседей (nextnearest), всевозможных тройных взаимодействий и взаимодействия четырех спинов для плоской модели, и для 3Dобобщенной модели Изинга во внешнем магнитном полесо всевозможными взаимодействиями в тетраэдре, образованном четырьмя спинами: в начале координат и ближайшие к нему по трем координатным осям в первом координатном октанте. Решеточные модели рассматриваютсяс граничными условиями со сдвигом (похожие на винтовые), и циклическим замыканием множества всех точек (в естественном упорядочении). В обоих случаях для плоской и 3Dмоделей построены элементарные трансферматрицы с неотрицательными матричными элементами, при этом свободная энергия в термодинамическом пределе равна натуральному логарифму максимального собственного значения трансферматрицы. Это максимальное собственное значение удается найти для специального вида собственного вектора с положительными компонентами. Описана область существования этих решений.На примерах показано существование нетривиальных решений получающихся систем уравнений для плоских и трехмерных обобщенных моделей Изинга. Система уравнений и значение свободной энергиив термодинамическом пределе останутся прежними для плоских и трехмерных моделей с гамильтонианами, в которых значение максимального в естественном упорядочении спина заменено значением спина практически в любой другой точке решетки, это значительно расширяет множество моделей, имеющих неупорядоченные точные решения.Высокая симметрия и повторяемость компонент найденных собственных векторов, исчезающая при выходе за рамки полученного множества точных решений, является поводом для поиска фазовых переходов в окрестности этого множества неупорядоченных решений.
We find the ground-state energy of the Ising model using the Cascaded Variational Quantum Eigensolver (CVQE) algorithm with the Guided-Sampling Ansatz (GSA) using up to 63 qubits on a quantum computer. We study a heavy-hex lattice to match the qubit architecture, allowing us to perform calculations in the quantum utility regime. We study both a homogeneous and random-coupling model. We locate the boundary of acceptable quantum errors as a function of the number of qubits and coupling strength. An entropic analysis is performed giving insights into the quantum computing performance. A subspace analysis is performed that suggests that the Ising model is especially suited for near-term quantum computing.
Variational quantum time evolution is a fundamental issue in physics and engineering. It provides a strong framework for modeling the dynamics of quantum states, which is essential for efficiently running quantum networks. It presents an excellent toolkit that can improve the efficacy, reliability, resilience and performance of quantum networks, opening the door to more sophisticated distributed computer systems, quantum communication, and other quantum technologies. The imaginary time evolution of quantum systems is one useful tool that enables the generation of ground or thermal states. In this work, we address standard variational principles, such as the Dirac and Frenkel variational principles, the McLachlan variational principle and the time-dependent variational principle to model real-time dynamics, as well as the Rayleigh–Ritz approach to address static challenges. We also present the variational quantum time evolution VarQITE and VarQRTE formalism in the density matrix method, which is not influenced by the global phase of the quantum state. We calculate the ground-state energy of our quantum Ising spin chain, using VarQITE with different interaction energies J , where three cases are considered. In the non-interacting ( NI ) case ( J = 0 ), we show that the energy of the ground state accomplished with VarQITE converges to an energy of − 2 . 00 Hartree at t = 1 . 1 seconds. In the Ferromagnetic ( FM ) interaction case ( J > 0 ), four scenarios are used to obtain the energy of the Hamiltonian. We show that the convergence and the energy 〈 H 〉 are sensitive to the energy of interaction J . Furthermore, the influence of the negative values of J < 0 , which correspond to the antiferromagnetic ( AFM ) case, on the energy of the ground state is also studied. We find that VarQITE and the exact classical solution are matched. We also investigated the expectation values for magnetization 〈 m z 〉 , employing VarQRTE and the exact classical solution. The NI, FM, and AFM cases are accomplished here. We find that when the spins are not interacting, 〈 m z 〉 = 0 , while it oscillates over time t when J > 0 and J < 0 . We believe that our outcomes will improve our knowledge of the variational quantum time evolution and lead to a better understanding of real and imaginary time evolution of quantum systems (which form a quantum network) and therefore, to more information on the time in networks.
In this work, a special elementary transfer matrix is constructed for generalized Ising models and Potts models with the general form of a finite Hamiltonian with a multi-spin interaction in a space of arbitrary dimensionality, the Napierian logarithm of its maximum eigenvalue is equal to the free energy of the system. In some cases, it was possible to obtain an explicit form of the eigenvector corresponding to the largest eigenvalue of the elementary transfer matrix. On this basis we obtained systems of nonlinear equations for the interaction coefficients of the Hamiltonian for finding the exact value of the free energy on a set of disorder solutions. Using the Levenberg-Marquardt method, the existence of nontrivial solutions of the resulting systems of equations for plane and three-dimensional Ising models was shown. In some special cases (the 2D Ising model, the interaction potential, including the interaction of the next nearest neighbors and quadruple interactions; the 3D model with a special Hamiltonian symmetric relative to the change of all spin signs, for which it is possible to reduce the system of equations to the system for a planar model) three parameters are written in explicit form. The domain of existence of these solutions is described. В работе построена специальная элементарная трансфер-матрица для обобщенных моделей Изинга и моделей Поттса с общим видом финитного гамильтониана с мультиспиновым взаимодействием в пространстве произвольной размерности, натуральный логарифм максимального собственного значения которой равен свободной энергии системы. В некоторых случаях удалось получить явный вид собственного вектора, отвечающего наибольшему собственному значению элементарной трансфер-матрицы. На основе этого выведены системы нелинейных уравнений на коэффициенты взаимодействия гамильтониана для нахождения точного значения свободной энергии на множестве неупорядоченных решений (disorder solutions). Методом Левенберга-Марквардта показано существование нетривиальных решений получающихся систем уравнений для плоских и трехмерных моделей Изинга. В некоторых частных случаях (2D модель Изинга, потенциал взаимодействия, включающий взаимодействие следующих ближайших соседей и четверные взаимодействия; 3D модель со специальным гамильтонианом, симметричным относительно перемены всех знаков спинов, для которой удается свести систему уравнений к системе для плоской модели) решения, зависящие от трех параметров, выписаны в явном виде. Описана область существования этих решений.
Quantum computing is still a developing, but an extremely promising area. The article lays out the main ideas behind quantum computing in simple terms. The topic of quantum computers based on qudits - multidimensional analogues of qubits, which have recently received much attention due to their efficiency, is also covered The fundamentals of quantum mechanics, which are necessary for understanding the principles of operation of a quantum computer, such concepts as qubits and qudits, linear operators, the measurement process, etc are introduced. As an example of quantum computing, the principle of operation of the Deutsch-Jozsa algorithm, one of the first quantum algorithms to demonstrate their advantages, and its generalization to qudits, are analyzed in detail. The process of writing the simplest quantum computer emulator in the Python programming language is described step by step. The emulator operates with an arbitrary number of qubits and allows you to apply arbitrary operators to them and carry out multiple measurements of the final state of the qubit. A generalization of this emulator for working with qudits is given after that. To demonstrate the emulator we have written, we present programs that implement the Deutsch-Jozsa algorithm and its generalizations on it, and test them. Квантовые вычисления — это развивающаяся и чрезвычайно перспективная область. В статье простыми словами изложены основные идеи, лежащие в основе квантовых вычислений. Также освещается тема квантовых компьютеров на основе кубитов - многомерных аналогов кубитов, которым в последнее время уделяется большое внимание благодаря их эффективности. Вводятся основы квантовой механики, которые необходимы для понимания принципов работы квантового компьютера, такие понятия, как кубиты и кудиты, линейные операторы, процесс измерения и т.д. В качестве примера квантовых вычислений подробно анализируются принцип работы алгоритма Дойча-Йожа, одного из первых квантовых алгоритмов, продемонстрировавшего свои преимущества, и его обобщение на кудиты. Пошагово описан процесс написания простейшего эмулятора квантового компьютера на языке программирования Python. Эмулятор работает с произвольным количеством кубитов и позволяет применять к ним произвольные операторы и проводить множественные измерения конечного состояния кубита. После этого дается обобщение этого эмулятора для работы с кудитами. Чтобы продемонстрировать написанный нами эмулятор, мы представляем программы, реализующие алгоритм Дойча-Йожа и его обобщения на нем, и тестируем их.