We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DepolarizingChannel can be defined for multiple qubits. For example, the following code should work as expected:
DepolarizingChannel
import cudaq cudaq.set_target("density-matrix-cpu") depolarization_channel = cudaq.DepolarizationChannel(probability=0.3) noise_model = cudaq.NoiseModel() noise_model.add_all_qubit_channel("cx", depolarization_channel) @cudaq.kernel def test(): q = cudaq.qvector(2) x(q[0]) cx(q[0], q[1]) print(cudaq.sample(test, noise_model=noise_model))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Required prerequisites
Describe the feature
DepolarizingChannel
can be defined for multiple qubits.For example, the following code should work as expected:
The text was updated successfully, but these errors were encountered: